07-11-2014 09:51 AM
Hi everybody!
So I was wondering if we could create a case in a case structure, that's based on a parameter.
So here is what I mean:
I have a case structure inside a for loop (i=0,..,N-1). I would like for the case structure to have 3 cases: default, i=0 and i=N-1.
The problem is that N can change from time to time. It is not a fixed value.
Therefore, is it possible to create a case that's litterally "N-1" ?
Thanks in advance!! 🙂
Valentine
Solved! Go to Solution.
07-11-2014 10:30 AM
No.
But why couldn't you put the N into the equation that determines which case to run. You do the calcualtions and comparisons in the code leading up to the selector terminal.
07-11-2014 10:36 AM
Thanks I didn't even think about that. So stupid! 😄
Thanks a lot! 🙂
07-11-2014 10:39 AM
Maybe something like this: