*selectable_if with two or more "or"


#1

Hello wizards of the code, a humble noob has come to seek your wisdom. I apologize in advance if my question is had offended your eyes for being so noob-ish

I’m having trouble understanding how the code should be written with multiple “or”
*temp a true
*temp b true
*temp c false
*temp d true
*choice
With two variables it works
Example: *selectable_if ((a) or (b)) #Choice A
Example: *selectable_if ((a) or not ©) #Choice B
But if I add another one, then no.
Example: *selectable_if ((a) or (b) or (d)) #Choice C
Example: *selectable_if ((a) or (b) or not ©) #Choice D
This thing shows.

Any ideas?


#2

not compatible. *selectable_if can only have one argument.


#4

Ah! Well @jasonstevanhill would definitely know :stuck_out_tongue_closed_eyes:


#5

Sad to hear, but one the other had, i been breaking my brain for last week over this, so i guess - nice to know i wasn’t just to stupid to figure it out :smiley:


#6

You could do something convoluted like this:

*TEMP a
*TEMP b
*TEMP ab
*IF (a) and (b)
  *SET ab true

a is true:

*SELECTABLE_IF a #Choice A

Both are true:

*SELECTABLE_IF ab #Choice AB

At least one is false:

*SELECTABLE_IF not(ab) #Choice C

#7

That could work - hmm (now i just need to undo all i just deleted in my work…)