Lexmark Document Distributor User Manual page 33

Lexmark document distributor software: user guide
Hide thumbs Also See for Document Distributor:
Table of Contents

Advertisement

Boolean Data Type (bool)
The boolean data type can store a value of TRUE or FALSE. This data type has no properties. There
are several operations that can be performed with the bool data type.
The examples below use the following two variables
bool b1, b2
b1 = TRUE
b2 = FALSE
Operators
==, EQ
<>, ! =, NE
&,AND
I, OR
!, NOT
=
Integer Data Type (int)
The integer data type can store whole numbers without decimal points. There are many mathematical
and comparison operations that can be performed with integer variables and properties.
Symbols
<, LT
>, GT
<=, LE
>=, GE
==, EQ
<>, !=, NE
+
-
*
/
%
The results of integer mathematical operators are always integers. For example, the result of 11/5 is 2.
Description
Equals
Not Equal
Logical AND
Logical OR
Logical NOT
Assignment
Description
Less Than
Greater Than
Less Than or Equal To
Greater Than or Equal To
Equal To
Not Equal To
Add
Subtract
Multiply
Divide
Remainder (Modulo)
29
Example
b1 == b2 results in a value of
FALSE
b1 <> b2 results in a value of TRUE
b1 AND b2, b1 & b2 each results in
a value of FALSE
b1 OR b2, b1 | b2
each results in
a value of TRUE
!b1 results in a value of FALSE
b1=false results in b1 storing a
value of FALSE

Advertisement

Table of Contents
loading

Table of Contents