VALUE1
and
VALUE2

The and operator returns true if both operands are true.


Parameters

This operator has two parameters:

value1 – The first numeric value.

value2 – The second numeric value.


Description

The and operator combines two boolean values by anding them together. In this example the value in the Age field or variable must be a number.

if Age >= 13 and Age<20
    Status="Teenager"
endif

The result is true if the person is 13 or older and if the person is less than 20 years old.

Note: The boolean values true and false are actually integer (numeric) values –1 and 0 respectively.

Note: If you are a “C” programmer, Panorama’s and operator is equivalent to C’s && operator. (In fact, Panorama will allow you to use && if you wish.)


Error Messages

Cannot AND a number with text. – Both operands must be numbers. If either operand contains a text value, an error occurs.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0