Difference between revisions of "Nasal Hello World"
From FlightGear wiki
m |
|||
Line 11: | Line 11: | ||
<syntaxhighlight lang="nasal"> | <syntaxhighlight lang="nasal"> | ||
− | gui.popupTip("Hello, World!" | + | gui.popupTip("Hello, World!"); |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:44, 12 January 2020
![]() |
The FlightGear forum has a subforum related to: Nasal Scripting |
In the programming world, a "Hello, World!" program is used to illustrate basic syntax using a very simple program. The "Hello, World!" program in Nasal would look like this (run this in the Nasal Console):
print("Hello, World!");
This will print the string Hello, World!
into the console.
To show a message inside the FlightGear window using a GUI tooltip instead, use the following snippet:
gui.popupTip("Hello, World!");