FlowScript Documentation : Samples

In this tutorial, we will learn how to print a simple "Hello world!" message to the console.
First, include the following libs : "string", "console".

#lib string
#lib console

Next, create the function "main".

#begin['main']
#end

Now, launch the function "writeline" from lib "console".

{console}:writeline()

Now, we must add the text to show.

{console}:writeline("Hello world!")

Before running, we must add "break" at the end. If not, the program will close immediately.

{app}:break()

 

Well done! Now you can run the program. Full code :

#lib string
#lib console

#begin['main']
{console}:writeline("Hello world!")
{app}:break()
#end

Last edited Mar 12, 2013 at 6:08 PM by zdimension, version 5

Comments

PhilipPicard Jun 10, 2013 at 8:02 PM 
Loos neat.