# Imp Operator

๋ ์์ ๋ํด ๋ผ๋ฆฌ์  ํฌํจ์ ์ํํฉ๋๋ค.

## ๊ตฌ๋ฌธ:

``````
Result = Expression1 Imp Expression2
``````

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

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

Expression1, Expression2: Imp ์ฐ์ฐ์๋ฅผ ์ฌ์ฉํ์ฌ ํ๊ฐํ  ์์์ ์์๋๋ค.

๋ถ๋ฆฌ์ธ ์์์ Imp ์ฐ์ฐ์๋ฅผ ์ฌ์ฉํ๋ฉด ์ฒซ ๋ฒ์งธ ์์ด True๋ก ํ๊ฐ๋๊ณ  ๋ ๋ฒ์งธ ์์ด False๋ก ํ๊ฐ๋  ๊ฒฝ์ฐ์๋ง False๊ฐ ๊ตฌํด์ง๋๋ค.

๋นํธ ์์์ Imp ์ฐ์ฐ์๋ฅผ ์ฌ์ฉํ๋ฉด ๋นํธ๊ฐ ์ฒซ ๋ฒ์งธ ์์ ์ค์ ๋๊ณ  ๋ ๋ฒ์งธ ์์์ ์ญ์ ๋  ๊ฒฝ์ฐ ํด๋น ๋นํธ๊ฐ ๊ฒฐ๊ณผ์์ ์ญ์ ๋ฉ๋๋ค.

## ์:

``````
Sub ExampleImp
Dim A As Variant, B As Variant, C As Variant, D As Variant
Dim vOut As Variant
A = 10: B = 8: C = 6: D = Null
vOut = A > B Imp B > C REM returns -1
vOut = B > A Imp B > C REM returns -1
vOut = A > B Imp B > D REM returns 0
vOut = (B > D Imp B > A) REM returns -1
vOut = B Imp A REM returns -1
End Sub
``````