The following script presents example of simple function definition and function call.

function myFunction (arg)
echo ("Hello");
echo ("From myFunction wih argument: " + arg);
}|{};//|{} is added at the end of function definition in order to return nothing from function definition (in urbiscript every statement has to return value)
//invoking function
myFunction ("Test");

More examples you can find in the URBI documentation LINK.



EMYS and FLASH are Open Source and distributed according to the GPL v2.0 © Rev. 0.9.2, 23.11.2017

FLASH Documentation