05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

PROGRAMMING REFERENCE<br />

EXPRESSION OPERATORS<br />

PROGRAMMING REFERENCE<br />

This section is a summary of all the commands used for programming.<br />

EXPRESSION OPERATORS<br />

For more information on the following operators, refer to the Writing Expression Section of<br />

this manual.<br />

LOGICAL CONSTANTS<br />

VALUE<br />

EXAMPLE<br />

0 False<br />

1 True<br />

INTEGER CONSTANTS<br />

BASE<br />

EXAMPLE<br />

Decimal 123<br />

Binary<br />

0b1111011<br />

Octal 0173<br />

Hexadecimal 0x7B<br />

CHARACTER CONSTANTS<br />

SEQUENCE VALUE ASCII<br />

\a Hex 0x07, Decimal 7 BEL<br />

\t Hex 0x09, Decimal 9 TAB<br />

\n Hex 0x0A, Decimal 10 LF<br />

\f Hex 0x0C, Decimal 12 FF<br />

\r Hex 0x0D, Decimal 13 CR<br />

\e Hex 0x1B, Decimal 27 ESC<br />

\xnnn The hex value represented by nnn. -<br />

\nnn<br />

LOGIC OPERATORS<br />

The octal value represented by<br />

nnn.<br />

\\ A single backslash character. -<br />

\' A single quotation mark character. -<br />

\" A double quotation mark character. -<br />

-<br />

OPERATOR PRIORITY EXAMPLE<br />

Equal To Group 7 Data == 100<br />

Not Equal To Group 7 Data != 100<br />

Greater Than Group 6 Data > 100<br />

Greater Than or Equal To Group 6 Data >= 100<br />

REVISION 6 PAGE 287

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

Saved successfully!

Ooh no, something went wrong!