Conditions that compare business terms and values

You can build conditions that compare and manipulate numeric and Boolean (true or false) values, dates, business terms, and text strings.

The following sections show how to use the business operators to compare data.

starts with

You can use the text operator starts with to determine whether a text string starts with a specific sequence of characters:

if 
	the maintenance number of customer starts with "TX" 
then 
	set message to "redirect the call to call center A"; 
is more than

You can use the numerical operator is more than to compare two numerical values:

if 
	the purchase value of the shopping cart is more than 100 
then 
	set discount to 10;
after <date> and before <date>

You can use the date operators after <date> and before <date> to compare two dates:

if 
	the return date of 'rented car' is after 'pickup date' and before 'scheduled return date' 
then...