Use IF statements to adjust tokens to return different values based on criteria they define.
IF statements save time by allowing you to place different values on forms using the IF Statement Editor without having to wait for the token to be updated with the parameters by a developer.
The purpose for the IF parameter is to evaluate the data returned from a token and present a different value based on whether
the evaluation is true or false.
The value for the IF parameter is as follows, the quotes must be present and there should not be any quotes in the True or
False Statement. Note that if a False Statement is not provided and the token is evaluated as false, the token simply returns
the original token value itself:
Note: If a False Statement is not provided and the token is evaluated as false, the token will simply return the original
token value itself.IF parameters can also be “stacked” to form a case statement (i.e., an IF, THEN, ELSE clause). However, the multiple IF parameters
must be made unique by adding a number to the end of each. Note that there are no False Statements specified on the various
IF parameters. When IF1 evaluates to false, it “falls through” and passes the token value to IF2, and so on. Adding a False
Statement would in effect change the value that is passed to the next IF parameter. Note that the parameters are not necessarily
processed by Word in numerical order. However, processing does stop when any one parameter is evaluated as true.