pTAL Reference Manual (H06.08+)

Expressions
HP pTAL Reference Manual523746-006
5-15
Conditional Expressions
Conditional Expressions
A conditional expression is a sequence of conditions and relational operators that
establishes the relationship between values. You can use conditional expressions to
direct program flow.
NOT
is an operator that produces a true state if condition has the value false:
condition
is an expression whose value is either true or false.
AND
is an operator that produces a true state if both its operands have the value true:
OR
is an operator that produces a true state if at least one of its operands has the
value true:
Value of a Value of NOT a
True False
False True
Value of a Value of b Value of a AND b
True True True
True False False
False True False
False False False
Value of a Value of b Value of a AND b
True True True
True False True
False True True
False False False
NOT
condition
AND
OR
VST996.vsd