You can use this operator as a condition for IF statements. It is useful for determining template logic.
Operator | Model | After you drag and drop the model into the script tab: | Expression returns: |
= | ⟦MULT_CHOICE⟧ = ⟦TEXT⟧ | Replace the ⟦MULT_CHOICE⟧ placeholder with the multiple choice variable you are checking and the ⟦TEXT⟧ placeholder with what you are checking for. | A true/false value. |
In the following script, if the user chooses Credit Card as the payment method, HotDocs asks the user for their credit card information:
IF Method of Payment = "Credit Card"
ASK Credit Card Information
END IF
After you download the example template, you can import the template to any workspace to see this example code in action.