# AND Operator

๋ ์์ ๋ผ๋ฆฌ์ ์ผ๋ก ๊ฒฐํฉํฉ๋๋ค.

## ๊ตฌ๋ฌธ:

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

## ๋งค๊ฐ ๋ณ์:

Result: ๊ฒฐํฉ ๊ฒฐ๊ณผ๋ฅผ ๊ธฐ๋กํ๋ ์์์ ์ซ์ ๋ณ์์๋๋ค.

Expression1, Expression2: ๊ฒฐํฉํ  ์์์ ์์๋๋ค.

AND๋ก ๊ฒฐํฉ๋ ๋ถ๋ฆฌ์ธ ์์ ๋ ์์ด ๋ชจ๋ True๋ก ํ๊ฐ๋  ๊ฒฝ์ฐ์๋ง True ๊ฐ์ ๊ตฌํฉ๋๋ค.

True AND True๋ง True๋ฅผ ๊ตฌํ๋ฉฐ ๋ค๋ฅธ ๋ชจ๋  ๊ฒฐํฉ์ False๋ฅผ ๊ตฌํฉ๋๋ค.

๋ํ AND ์ฐ์ฐ์๋ ๋ ๊ฐ์ ์ซ์ ์์์ ๋์ผํ ์์น์ ์๋ ๋นํธ์ ๋นํธ ๋จ์ ๋น๊ต๋ฅผ ์ํํฉ๋๋ค.

## ์:

``````
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 REM returns -1
vVarOut = B > A And B > C REM returns 0
vVarOut = A > B And B > D REM returns 0
vVarOut = (B > D And B > A) REM returns 0
vVarOut = B And A REM returns 8 due to the bitwise AND combination of both arguments
End Sub
``````