Back to List
Placeholder | Replace With |
num_var | A Number variable |
This expression returns the value of zero only if a Number variable is unanswered. If the Number variable is answered, the value is the answer the user specifies.
For example, users will sometimes leave a Number variable blank instead of entering 0. If the Number variable is then used in a Computation variable, because it is unanswered, the computation will not be processed. The zero expression ensures the variable is assigned a value so the computation can return a value.
In this example, the zero expression is used in the Computation variable InvoiceTotal to return 0 if the Number variable ShippingCharge is unanswered.
TotalPrice + zero( ShippingCharge )
Back to List