Author Topic: {EXP} and Operators  (Read 4213 times)

Technomancer

  • Jr. Member
  • **
  • Posts: 98
  • I have a bad feeling about this...
{EXP} and Operators
« on: August 03, 2016, 04:15:47 PM »
I'm probably using this token wrong, or my syntax is not correct, but I'm trying to check a text variable against 2 possible answers in a Conditional Block (Text):

Variable Name/Token: myVariable
Equals
Text: {EXP:(myVariable = 'yes') Or (myVariable = 'yeah')}

I also tried

Variable Name/Token: myVariable
Equals
Text: {EXP:({TXT:myVariable} = 'yes') Or ({TXT:myVariable} = 'yeah')}

I think that if either example above worked, it would return a 0 or a 1, which probably force me to use a secondary Conditional Block (Interger) to test, which I have not tried.

If someone could kindly point out my error or rework the above example into a working expression, I think I can go from there.

I'm just not even sure if it's meant to be used this way or if I'm putting the expression in the wrong location, etc...

Thanx in advanced

EDIT: When all else fails, read the instructions. :P  I had it all wrong.  I didn't know you had to 'quote' the {TXT:myVariable} token and I was putting the EXPression in the wrong field.

Working:

Variable Name/Token: {EXP:('{TXT:myVariable}' = 'yes') Or ('{TXT:myVariable}' = 'yeah')}
Equals
Text: '1'
« Last Edit: August 03, 2016, 05:06:10 PM by Technomancer »