Using Conditionals in Execute Code



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