Skip to Content Skip to Menu

cb conditional statement - what am I doing wrong here?

  • maestroc
  • maestroc
  • OFFLINE
  • Posts: 22
  • Thanks: 0
  • Karma: 0
8 years 6 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum