cb conditional statement - what am I doing wrong here?

7 years 11 months ago #281077 by maestroc
I have a fairly basic conditional statement that I need help to get working properly. Simple ones I can handle, but in this case I don't know what the proper statement would be. There are four options available, Success, Quantum, Ramp, and Core. A user can be a member of more than one of these groups. What I have now is this:


[cb:if cb_coachingspecialties includes "Success"]
BLAH
[/cb:if]

[cb:if cb_coachingspecialties includes "Quantum"]
BLAH
[/cb:if]

[cb:if cb_coachingspecialties="Ramp"]
NO BLAH
[/cb:if]

[cb:if cb_coachingspecialties="Core"]
NO BLAH
[/cb:if]


That works fine except that if a user is in both Success and Quantum then they see the same information two times.

What I need is that if a user is in Success AND/OR Quantum then they get to see BLAH. If they are also in Ramp or Core they should still be able to see it.

If a user is not Success or Quantum they should be shown the NO BLAH text.

I'm sure this is simple, but like I said, I never do this and my attempts at working an OR statement haven't worked properly. Anyone willing to help a dummy like me to figure this out?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.114 seconds

Facebook Twitter LinkedIn