613-518-1166 info@zimdatabases.com

ZIM Language Reference

$or

< All Topics

$or

Performs a bit-wise OR of two values.

Syntax

$or(char1,char2)

Parameters

char1

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

char2

a 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

About Character Literals

About Functional Expressions

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents