Navigation: Deposit Screens > Definitions Screen Group > Service Charges Screen > EZ4U Programming > EZ4U Commands >
This Command is one of several commands available to use in EZ4U Programming. The syntax used to enter this command is specified below, followed by a more detailed explanation of the command itself and a few examples.
Syntax: ORIF {value} {logical operator} {value}
An ORIF command is used to compare two values using Logical Operators. An ORIF command must follow an IF command. An ORIF command allows further comparison to determine a service charge after an IF command has proven false.
The values compared can be Constants, Variables, or Expressions. The outcome of an ORIF command is either true or false. If it is true, the system continues to the next Statement and performs it. If it is false, the system looks for an ELSEIF command or another ORIF command and continues at that point. If one is not found, no service charge will be processed.
An ORIF command can be written as OR IF.
IF, ORIF, or ELSEIF Commands with no Expressions are always true.
Examples
IF AVGBAL >= 1000.00
ORIF LOWBAL >= 500.00
If the average balance on the customer account is greater than or equal to $1,000.00, or if the low balance on the account is greater than or equal to $500.00, the system will go to the next statement. In this example, the average balance is $800.00, which makes the first IF statement false. The system will then go to the ORIF statement. If the low balance on the account were $600.00, the ORIF statement would be true, and the system would continue to the next statement.
IF DAYSDIFF TODAY - OPENDT >= 180
OR IF LOWBAL >= 5000.00
If the difference between the current date (run date) and the date the account was opened is not greater than or equal to 180 days, but the low balance on the account is over $5,000.00, the system will go to the next statement.