FlowScript Documentation : Samples

In this tutorial, we will learn how create and read variables.

First, include the following libs : "string", "console".

#lib string
#lib console

Next, create the function "main".

#begin['main']
#end

Now, we add a "string" variable with name "mystring".

.{string}:mystring

Now, we must add the text to show.

{console}:writeline([mystring])

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([mystring])
{app}:break()
#end

Last edited Mar 16, 2013 at 8:06 AM by zdimension, version 3

Comments

No comments yet.