$or

$or

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

$or

Performs a bit-wise OR of two values.

Syntax

$or(char1,char2)

Parameters

char1a character string, or an expression that evaluates to a character string
char2a character string, or an expression that evaluates to a character string

Return Value

Character string.

Comments

The $or function combines the bit patterns of two characters in the fashion of a Boolean OR and returns the resulting character.

If the char1 or char2 string contains more than one character, only the first character in the string (one byte) is processed. You can express char1 and char2 as hex codes (e.g., 6E).

Example

$or("E","F")

The bit pattern of hex 0E is 00001110 and of hex 0F is 00001111. The above expression returns the bit pattern 00001111 (hex 0F).

See Also

$and

$not

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish