Updated: 2024-06-13
Use operators within field codes to help write conditional statements.
Operator | Example | Explanation |
---|---|---|
and |
{{# T185.Debit.PaymentAmount > 0 and T185.Debit.NotInterested = 0 }} |
Both statements are true. Example: The client has a payment on the T185 and is interested in making a pre-authorized debit payment. |
or | {{# Info.Residency.ResidencyStatus = "Resident" or Info.Residency.ResidencyStatus = "DeemedResident"}} |
Either statement is true. Example: The taxpayer is either a resident or a deemed resident. |
> | {{# Info.ID.AgeOnDec31 > 71 }} |
The value of the first statement is greater than the value of the second statement. Example: The taxpayer’s age is over 71. |
< | {{# Info.ID.AgeOnDec31 < 71 }} |
The value of the first statement is less than the value of the second statement. Example: The taxpayer’s age is under 71. |
>= | {{# Info.ID.AgeOnDec31 >= 71 }} |
The value of the first statement is greater than or equal to the value of the second statement. Example: The taxpayer’s age is 71 or over. |
<= | {{# Info.ID.AgeOnDec31 <= 71 }} |
The value of the first statement is less than or equal to the value of the second statement. Example: The taxpayer’s age is 71 or under. |
= | {{# Info.Residency.ResidencyStatus = "Resident" }} |
The value exactly matches the one in the statement. Example: The taxpayer is a resident. |
!= | {{# Info.Residency.ResidencyStatus != "Resident" }} |
The value is different than one in the statement. Example: The taxpayer is not a resident. |
Note: There is no else operator. You can create a reverse condition with the not() function.