![]() ![]() The first line assigns the text string “Hello World” to the variable. The write statement will now write to the log window whatever value has been assigned to the msg variable. To generalise the script to display an arbitrary message I need to use variables: ![]() Currently my script is only able to write a fixed message to the log window. OK well that’s “Hello World” complete! But I think I can take things just a little bit further to make it much more useful.Īn essential characteristic of computer programs is the concept of generalisation. Now when I run the script I see that it produces the following log window output: To view the log window I select Log from the JMP View menu: In fact something does happen, but the results are being displayed in the JMP log window which is not visible unless I explicitly request it. Whichever method I choose to execute the script, the result is a bit disappointing – nothing seems to happen. Right-click and select run script from the context menu.Select the run script icon from the toolbar.There are three methods for running the script: My basic “Hello World” script consists of a single JSL statement: So I thought I would respect this convention and introduce JSL using this principle.įirst I need to open a script window in which I can write my JSL code:įile>New>Script (or the second icon on the toolbar): Convention suggests that programming languages should be introduced with a simple trivial “Hello World” program. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |