%XOR function


Function
The function performs a logical or binary XOR operation between parameters.
Declaration
BOOL|INT %XOR(
   BOOL|INT in _a,
   BOOL|INT in _b
 )

Parameters
_a logical or integer value
_b logical or integer value

Description
The parameter types must be the same. If both parameters are of BOOL type, the function performs the XOR logical operation and returns the resulting BOOL type value.
In case of integer-type parameters, the function performs the appropriate logical operation between individual corresponding bits of binary forms of the two operands.
Napíšte komentár