Using Conditionals in Execute Code

Support
  • I have been trying to use conditions "Switch " ,"for" and "if" statements to call functions based on either the switch expression, the iterator or the evaluation of the "if" expressions.

    The issue is that at the first run of the expressions, it calls the corresponding function, but after that it gives an error in the log saying "[940048881] [12:44:56] Thread #1 : ReferenceError: Can't find variable: third during execution of action 940048881"
    It always says it can't find the the variable, when it should be calling the function name.

    Attached below are the screenshots:
    alt text
    The error log:
    alt text

    IS there a problem somewhere, or it is not allowed??

  • 0 Votes
    4 Posts
    918 Views
  • BAS uses only 1 CPU CORE

    Moved Support
    0 Votes
    5 Posts
    1128 Views
  • Question about source code

    Support
    0 Votes
    4 Posts
    876 Views
  • 0 Votes
    1 Posts
    633 Views
  • How to find source code?

    Support
    0 Votes
    1 Posts
    667 Views