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>>,>>



   While, as shown above, you can have multiple comparitors (as many as you wish), you cannot mix ANDs and ORs in the same equation. You cannot use paraentheses to group items for an initial 'small' comparison before the 'large' comparison. So you can have:

 <<*If*!Size!="Custom"AND !Color! = "Custom"AND!Fabric!="Silk",<<*AskOptions*!ExtraCharge!$70/$80/$90*>>,>>

 But, this is not allowed:

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

 You can, however, write two separate <<*IF* . . . >> equations, however, to accomplish the same result.