"Not Equal To" (!=) Not Functioning in Dynamic Content?

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered
I'm trying to put together an email that include a content block for a small segment of my population (people interested in a specific academic program) and a more general content block for everyone else. 

It seemed easiest to qualify the first content block by saying:

[% if member:program1 == "MBAD" %]

and the second content block by saying: 

[% if member:program1 != "MBAD" %]

However, when I try put the "!" in the HTML block, the "!" turns red--and the proofing tool tells me I have problems with my code. 

Is "Not Equal To" an unacceptable qualifier when it comes to dynamic content? Or is there another way I should be structuring this log?


Photo of MICA Office of Graduate Admission

MICA Office of Graduate Admission

  • 3 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 0
  • 1
Photo of Sam Collis

Sam Collis, Customer Support Specialist

  • 252 Posts
  • 59 Reply Likes
Official Response
Hi there!

Apologies for the delayed response.  It looks like you've sorted yourself out here but I just wanted to chime in and make sure that you're all good.  As you've already noted, the use of [% else %] in a boolean statement tends to be better than two "if" statements on top of each other.  Without having looked at the entirety of your code it's hard be completely sure why it was showing red, but I can speculate that it might have been the second "if" statement creating a logic error.  If you have any further questions please don't hesitate to ask :)