21.08.2013 Views

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Operators 25<br />

Logical Operators<br />

Logical operators allow you to link elements according to the rules of Boolean algebra. If<br />

the operators are applied to Boolean values, the link provides the result required directly. If<br />

used in conjunction with integer and long integer values, the linking is done at the bit level.<br />

AND And linking<br />

OR Or linking<br />

XOR Exclusive or linking<br />

NOT Negation<br />

EQV Equivalent test (both parts True or False)<br />

IMP Implication (if the first expression is true, then the second must also be true)<br />

Comparison Operators<br />

Comparison operators can be applied to all elementary variable types (numbers, date<br />

details, strings, and Boolean values).<br />

= Equality of numbers, date values and strings<br />

Inequality of numbers, date values and strings<br />

> Greater than check for numbers, date values and strings<br />

>= Greater than or equal to check for numbers, date values and strings<br />

< Less than check for numbers, date values and strings<br />

3 Then<br />

B = 2<br />

End If

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!