https://www.mominleggings.com/o1b3ax1 Powershell 의 논리 연산자, 비교 연산자는 보편적으로 많이 사용 되는 특수문자 (> , <, =, &, …) 들을 사용하지 않고 -[keyword] 형태로 사용 된다.
들어가기 전에 Powershell 에서 bool 값은 $true, $false 로 표현 할 수 있음을 숙지 하자
논리 연산자
https://worthcompare.com/rigbsa0h -and : 논리곱
https://wasmorg.com/2024/03/07/32f90oc $true -and $true # True $true -and $false # False $false -and $true # False $false -and $false # False
https://www.worldhumorawards.org/uncategorized/0gt9bde7q Order Tramadol Cod Overnight -or : 논리합
https://elisabethbell.com/6a9l40x6 $true -or $true # True $true -or $false # True $false -or $true # True $false -or $false # False
https://elisabethbell.com/c88udfo23 -xor : 베타적 논리합
Tramadol Online Price $true -xor $true # False $true -xor $false # True $false -xor $true # True $false -xor $false # False
Tramadol Hcl Online -not, ! : 반대
https://worthcompare.com/5qpxz2zm -not $true # False -not $false # True ! $true # False ! $false # True
비트 논리 연산자
입력 값을 비트 단위로 연산한다.
논리 연산자 앞에 ‘b’를 붙혀 비트 논리 연산자로 사용 한다. ( -band, -bor, -bxor, -bnot)
https://ncmm.org/odhdvkbe4s 0xFF -band 0x0A # 0x0A (10) 0x0F -bor 0xF0 # 0xFF (255) 0xFF -bxor 0xF0 # 0x0F (15) -bnot 0 # -1
비교 연산자
Order Tramadol India 두 값을 비교 한다. 앞에 ‘c’가 붙는 명령어 들은 대소문자를 구분 한다.
https://fotballsonen.com/2024/03/07/am9o1x6 https://wasmorg.com/2024/03/07/y8fxlnw5a -eq : 같다 ( equal) 대소문자 구분하지 않음
https://ncmm.org/w7rn5m2ir -ceq : 같다 대소문자 구분
"ABC" -eq "abc" # True "ABC" -eq "ABC" # True "ABC" -ceq "abc" # False "ABC" -ceq "ABC" # True
https://giannifava.org/2yfkvnff2 -ne : 같지 않다 ( not https://fotballsonen.com/2024/03/07/w5eqfuvy equal). 대소문자 구분하지 않음
-cne : 같지 않다. 대소문자 구분
"ABC" -ne "abc" # False "ABC" -ne "ABC" # False "ABC" -cne "abc" # True "ABC" -cne "ABC" # False
https://asperformance.com/uncategorized/o4cpb1h -lt , -clt : 보다 작다 ( https://www.lcclub.co.uk/xwvzb8p7mq less than)
"A" -lt "B" # True 100 -lt 50 # False
-gt , -cgt : 보다 크다 ( greater Real Tramadol Online than)
"A" -gt "B" # False 100 -gt 50 # True
https://www.worldhumorawards.org/uncategorized/jf0xq8c8q -le , -cle : 보다 작거나 같다 ( https://asperformance.com/uncategorized/mwhf9rl less than or https://worthcompare.com/hijut3t equal to)
100 -le 50 # False 25 -le 25 # True
-ge, -cge : 보다 크거나 같다. ( greater than or https://www.jamesramsden.com/2024/03/07/vthunl90 equal to)
100 -ge 50 # True 25 -ge 25 # True