Hey, I am trying to check the value of a repeater item. This item can have multiple values and I only want to trigger an action if its either A or B. (Not C or something else)
I tried something like this:
Value [[[[Item.example]] == A || [[Item.example]] == B]] equals value true
Don’t nest [[ ]], it’s not necessary nor does it work. You only need that in the very outside of any expression you want evaluated.
[[Item.example == A || Item.example == B]]
I haven’t had my coffee yet but you don’t need any parentheses here. Just the outer brackets so Axure will evaluate those values.
Use ( ) for any grouping inside it. Anything outside [[ ]] is interpreted by Axure as plain text exactly as it is written. For example the number is [[2+5]], ok? is seen by Axure as the number is 7, ok?.
If you are doing these evaluations in a conditional case, you can add multiple “logic rows” and choose “Match Any” in the upper right. Should have same result, just easier to get the syntax correct and (usually) easier to read in the INTERACTIONS pane. For example,
Yeah, the thing is that I have another condition that has to be matched. So then it would be X + A or X + B. That’s why the solution didn’t work in the first place. Still, thank you for your help