Adding an if part
You use the if part to state under which conditions to carry out the rule actions that are defined in the then and else parts.
The if part of a rule checks a condition and produces an answer that is either true or false.
Conditions use data from the application that calls the rule. Each conditional test compares different business terms or values in the data. Different comparison operators are available for text, numbers, dates, business terms, and sets of entries. All conditions are either true or false. For example, the action in the following rule redirects a call to a member of the Gold team only if the customer category is Gold:
if the category of 'the customer' is Gold then print "redirect the call to a member of the Gold team";
The if part in this rule contains one condition, which can be either true or false. The rule carries out the action statement in the then part only if the condition is true.