Math (discussed previously) lets you add values assigned to !groups!. But what if you just want to ask "If This AND This are true (or If This OR This are true), then do this.

   That is possible. Just use the 'AND' or the 'OR' connector:


<<*If*!NumCdn!>2 AND !NumPets!>2,!CrazyHouse!=”True”,!CrazyHouse!=”False”)>>

<<*If*!NumCdn!>4 OR !NumPets!>4,!CrazyHouse!=”True”,!CrazyHouse!=”False”)>>


More examples:




<<*If*!Size!="Custom"AND !Color! = "Custom",<<*AskOptions(radio)*!ExtraCharge!$100/$150/$200*>>,>>

<<*If*!Size!="Custom"AND !Color! ~ "Custom",<<*AskOptions(radio)*!ExtraCharge!$50/$60/$70*>>,>>

<<*If*!Size!="Custom" OR !Color! = "Custom",<<*AskOptions(radio)*!Shipping!$20/$30/$40>>,>>



In the above example, we used 'hard' (as opposed to positional) values for the comparisons.

'Legal' comparators


'~' ('not equal')

'#' ('includes'; used when multiple items can be selected, and you are checking to see if the named item was one of them.)  

'Legal' connectors:

'AND' or 'and'

'OR' or 'or'

'+' (math only)

'-' (math only)

  This example addresses what a manufacturing company might face in processing special orders. There are extra manufacturing charges and extra shipping charges associated with custom orders. Here the ~ (not equal) is illustrated.



<<*If*!Size!="Custom"AND !Color! = "Custom",<<*AskOptions*!ExtraCharge!$50/$60/$70*>>,>>

<<*If*!Size!="Custom"AND !Color! ~ "Custom",<<*AskOptions*!ExtraCharge!$100/$150/$200*>>,>>

<<*If*!Size!="Custom OR !Color! = "Custom",<<*AskOptions(radio)*!Shipping!$20/$30/$40>>,>>