PDA

View Full Version : Returning a value from a lua-script?



fotzor
March 11th, 2004, 08:03 AM
Hi,
how can I return true from a script? I tried
return 1
in the last line of the script but the script returns false though...
:(
I need this because girder should start a command depending if the script returned true or false

Mark F
March 11th, 2004, 09:17 AM
Set the special variable, result, to 0 (FALSE) or 1(TRUE).

For example:


result = (A_Variable == 25)


On the GVMS command that contains this script, you can then choose to execute a command on either or neither the TRUE or FALSE condition.

fotzor
March 11th, 2004, 10:15 AM
thank you!