01-05-2012 08:11 AM
Essentially I want the case structure to do: If case1 = run OR case2 = run, do this, else do case3++
I'm using a string case structure right now, where for example, the inputs could be SWEEP_A or SWEEP_B but I want the case structure to use case SWEEPAorB. This is so I can have different names for the input string BUT run the same case (this is to avoid redundant code for what I'm doing).
Thanks.
01-05-2012 08:34 AM
Do your boolean comparisons before the case structure with and OR, then have 2 cases, a True and a False,
The case structure can also run on multiple conditions. Just type them into the top with a comma between them. I can't translate your "case1=run" terminology to anything. But let's say a string = "A" Or a string = "B" and either way you want the same case 1 to run, then enter A, B into the selector at the top of case 1, Use Default for the other case.
So in your situation use SWEEP_A, SWEEP_B IN CASE 1, and Default in Case 2.
01-05-2012 02:01 PM
For more complex logic use can use create a boolean array and convert it to a number.
01-05-2012 09:47 PM
Type this into the case heading:
"SWEEP_A","SWEEP_B"
comma seperate the valid strings for this case.
01-05-2012 10:50 PM
Timmar is correct if I understand your post. If you want Sweep_A or B to trigger the same case, separate them with a comma.
01-05-2012 10:53 PM
Timmar, Moreesem
Isn't that what I said in message 2?
01-05-2012 10:57 PM
RavensFan,
Yes, I guess
It took me 2 reads of your post before I figured out that you had said the same/similar thing.
I didn't recognise it without the quotes around the strings.
01-06-2012 07:57 AM
@Ravens Fan wrote:
Timmar, Moreesem
Isn't that what I said in message 2?
Yes it is.