Reply To: [SOLVED] Index out of bounds problem

Forums 💬 FlowCanvas ⚙️ Support [SOLVED] Index out of bounds problem Reply To: [SOLVED] Index out of bounds problem

#22401
Gavalakis
Keymaster

    Hello,

    Unfortunately due to the way nodes are working, the AND node will execute both A and B regardless of whether A is false, which in this case impose a problem. Please consider using the Switch Condition to check (if Input.touchCount > 0) and after than make use of GetTouch(0).phase with a SwitchEnum flow control node:

    [attachment file=”TouchPhase.png”]

    (Note: To set the type of the SwitchEnum node, all you have to do is to drag and drop an enum port type like ‘TouchPhase’ is on the newly created SwitchEnum node.)

    Let me know if that works for you.
    Thanks.