05-13-2017 02:31 PM
Hi,
I have an For loop with 8 iterations inside an Event structure.
I want to execute some code when iteration <4 and other code in the other case.
Can you help me to do this ?
Thank in advice!
Solved! Go to Solution.
05-13-2017 02:59 PM
Put a case structure inside the For Loop. Connect the iteration terminal to the case selector.
Use 0..3 for one case, 4... Default, for the other.
05-13-2017 06:45 PM
@RavensFan wrote:
Put a case structure inside the For Loop. Connect the iteration terminal to the case selector.
Use 0..3 for one case, 4... Default, for the other.
While correct. That sounds like an absolutely awful way to begin to use events.
Can you share code where this solution is used?
05-13-2017 07:14 PM
The question was about For Loops and different cases based on iteration number. The event structure part of the question is superfluous.
05-13-2017 07:35 PM
@Claudinho18 wrote:
Hi,
I have an For loop with 8 iterations inside an Event structure.
I want to execute some code when
I thought my question was fair Bill???? We OK?
05-13-2017 08:15 PM
Sure. We're okay.