summaryrefslogtreecommitdiffhomepage
path: root/powershell.html.markdown
diff options
context:
space:
mode:
authorAndrew Ryan Davis <AndrewDavis1191@gmail.com>2020-08-16 14:46:42 -0700
committerAndrew Ryan Davis <AndrewDavis1191@gmail.com>2020-08-20 12:30:32 -0700
commitf67ae9b31195a0bf30a18e892e755884aa54b1aa (patch)
treec299aa0c630f39b32b2092fc9b43470c3227c9fd /powershell.html.markdown
parent12c7b6cd59aa03f95f6745829b7e66a828c9dad4 (diff)
Addressing bitwise and/or
Mistakenly left "and/or", changed to "-band/-bor"
Diffstat (limited to 'powershell.html.markdown')
-rw-r--r--powershell.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/powershell.html.markdown b/powershell.html.markdown
index 3de8d07e..45c47017 100644
--- a/powershell.html.markdown
+++ b/powershell.html.markdown
@@ -89,12 +89,12 @@ $False - 5 # => -5
# Using boolean logical operators on ints casts them to booleans for evaluation
# but their non-cast value is returned
-# Don't mix up with bool(ints) and bitwise and/or (&,|)
+# Don't mix up with bool(ints) and bitwise -band/-bor
[bool](0) # => False
[bool](4) # => True
[bool](-6) # => True
-0 -and 2 # => 0
--5 -or 0 # => -5
+0 -band 2 # => 0
+-5 -bor 0 # => -5
# Equality is -eq (equals)
1 -eq 1 # => True