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 Credit Card is not chosen as a method of payment, HotDocs inserts a template which gathers alternate payment information about the user:
IF Method of Payment != "Credit Card"
INSERT "Alt payment method.docx"
END IF
After you download the example template, you can import the template to any workspace to see this example code in action.