Results 1 to 3 of 3

Thread: Returning a value from a lua-script?

  1. #1
    Join Date
    Aug 2002
    Posts
    18

    Default Returning a value from a lua-script?

    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
    Don\'t get captured...

  2. #2
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    Set the special variable, result, to 0 (FALSE) or 1(TRUE).

    For example:
    Code:
    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.
    Mark F

  3. #3
    Join Date
    Aug 2002
    Posts
    18

    Default

    thank you!
    Don\'t get captured...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •