Titan



or4b


The keyword or4b belongs to the family of the bitwise operators operating on bitstrings, hexstrings or octetstrings of equal length. It performs the following operation: for each corresponding bit position, the resulting value is 0 if both bits are set to 0, otherwise the value for the resulting bit is 1.

Related keywords:


or4b


Example 1:

const bitstring c_tionde := '1001'B;
const bitstring c_sistan := '0101'B;
  var bitstring v_tolvte := c_tionde or4b c_sistan;

The variable v_tolvte will initially contain the value '1101'B.


Example 2:

const hexstring c_hatso := '9'H ;
const hexstring c_felso := '5'H;
  var hexstring v_alfa := c_hatso or4b c_felso;

The variable v_alfa will initially contain the value 'D'H.


Example 3:

const octstring c_zwei := 'A9'O ;
const octstring c_drei := 'F5'O;
  var octstring v_vier := c_zwei or4b c_drei;

The variable v_vier will initially contain the value 'FD'O.



BNF definition of or4b