$and

$and

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

$and

$and

Performs a bit-wise AND of two values.

Syntax

$and(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 $and function combines the bit patterns of two characters in the fashion of a Boolean AND 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

$ and(“E”,”F”)

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

 

See Also

$not

$or

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%
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