10.7 Conditions

Conditions are used in report programs to make some kind of decision. A condition can be any one of the following:

gifs/20000000.gif a single data value

gifs/20000000.gif an expression

gifs/20000000.gif expression separated by relational operators

gifs/20000000.gif conditions separated by logical operators

Data values are represented in conditions the same as they are in expression; however, slightly different rules are applied in the conversion:

If the condition is a single data value, leave the string as a string.

If the string is an operand of a relational operator and the other operand is of type money, convert the string to a money value.

If the string is an operand of a relational operator and the other operand is of type date, convert the string to a date.

If the string is an operand of a relational operator and the other operand is of type time, convert the string to time value.

If the string is an operand of a relational operator and the other operand is a numeric type, convert the string to a real.