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??

  • 1 Votes
    5 Posts
    308 Views
  • 0 Votes
    1 Posts
    589 Views
  • 0 Votes
    4 Posts
    756 Views
  • 0 Votes
    3 Posts
    937 Views
  • Using BAS Api with node

    Support
    0 Votes
    2 Posts
    1293 Views