Please enable JavaScript to view this site.

Validity: Rule, Task

The use of this family of operators is reserved for integer values. If used with real values, the compiler will issue an error. The result is still a value of type integer.

AND binary

Bit-to-bit (binary) AND operation between two integer values.

Syntax

valueA r_and valueB

valueA

First value

valueB

Second value

Result

Binary AND between the two values

Examples:

OR binary

Bit-to-bit (binary) OR operation between two integer values.

Syntax

valueA r_or valueB

valueA

First value

valueB

Second value

Result

Binary OR between the two values

Examples:

NOT binary

NOT bit-to-bit (binary) operation for an integer value.

Syntax

r_not value

value

Value

Result

Binary NOT of value

Examples:

XOR binary

Bit-to-bit (binary) XOR operation between two integer values.

Syntax

valueA r_xor valueB

valueA

First value

valueB

Second value

Result

Binary XOR between the two values

Examples:

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC