MULT_CHOICE=TEXT; MULT_CHOICE!=TEXT
Placeholder | Replace With |
MULT_CHOICE | A Multiple Choice variable |
TEXT | A text value that is either equal to ( = ) or not equal to ( != ) one of the options in the given Multiple Choice variable, inside quotation marks. |
Returns a Number value
The MULT_CHOICE = TEXT expression returns true when the user chooses a Multiple Choice option that is equal to ( = ) a given text value. If it is not equal ( != ), the expression returns false. The MULT_CHOICE != TEXT expression functions in the opposite way—testing instead to see if an answer is not equal to ( != ) a given text value.
In the following True/False expression, if the user chooses Credit Card as the payment method, HotDocs asks the user for the credit card information:
IF Method of Payment = "Credit Card"
ASK Credit Card Information
END IF
In the next expression, if Credit Card is not chosen as a method of payment, HotDocs inserts a template which can gather alternate payment information about the user:
IF Method of Payment != "Credit Card"
INSERT "Alt payment method.docx"
END IF
When writing this script, you can use the auto-complete functionality to access your list of Multiple Choice options. Specifically, press Ctrl+Spacebar (after you enter the operator) to display a list of the different Multiple Choice options. See Use the Script Editor for full details on using auto-complete as you write scripts.