# AND Operator

Logically combines two expressions.

## الصياغة:

``````
Result = Expression1 And Expression2
``````

## المعاملات:

Result: Any numeric variable that records the result of the combination.

Expression1, Expression2: Any expressions that you want to combine.

Boolean expressions combined with AND only return the value True if both expressions evaluate to True:

True AND True returns True; for all other combinations the result is False.

The AND operator also performs a bitwise comparison of identically positioned bits in two numeric expressions.

## مثال:

``````
Sub ExampleAnd
Dim A As Variant, B As Variant, C As Variant, D As Variant
Dim vVarOut As Variant
A = 10: B = 8: C = 6: D = Null
vVarOut = A > B And B > C ' returns -1
vVarOut = B > A And B > C ' returns 0
vVarOut = A > B And B > D ' returns 0
vVarOut = (B > D And B > A) ' returns 0
vVarOut = B And A ' returns 8 due to the bitwise And combination of both arguments
End Sub
``````
{"ft_lang_label":"__label__en","ft_lang_prob":0.58342785,"math_prob":0.97665197,"size":916,"snap":"2020-24-2020-29","text_gpt3_token_len":248,"char_repetition_ratio":0.17214912,"word_repetition_ratio":0.0867052,"special_character_ratio":0.2554585,"punctuation_ratio":0.10674157,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9846277,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-05-31T20:13:17Z\",\"WARC-Record-ID\":\"<urn:uuid:8a44e714-581e-4d41-ba68-653c2ce40802>\",\"Content-Length\":\"7651\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:570b62f0-981f-4dd7-98b9-ea1b6278f1e3>\",\"WARC-Concurrent-To\":\"<urn:uuid:90937404-1a42-4aaf-8b4d-bfa57fb34625>\",\"WARC-IP-Address\":\"89.238.68.190\",\"WARC-Target-URI\":\"https://help.libreoffice.org/latest/ar/text/sbasic/shared/03060100.html\",\"WARC-Payload-Digest\":\"sha1:LURVOPNXOC7O5ZUAJKIEXWRMNC2O5JDX\",\"WARC-Block-Digest\":\"sha1:OL6ZOGCQNTBHVRJAMXAKIL6NIQGEC3JX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347413624.48_warc_CC-MAIN-20200531182830-20200531212830-00199.warc.gz\"}"}