aboutsummaryrefslogtreecommitdiff
path: root/help/assert_assertwithmsg.md
diff options
context:
space:
mode:
Diffstat (limited to 'help/assert_assertwithmsg.md')
-rw-r--r--help/assert_assertwithmsg.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/help/assert_assertwithmsg.md b/help/assert_assertwithmsg.md
new file mode 100644
index 00000000..4a7e26cf
--- /dev/null
+++ b/help/assert_assertwithmsg.md
@@ -0,0 +1,29 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/assert_assertwithmsg.html).*
+
+# Exclamation Mark (`!`)
+
+## `! 𝕩`: Assert
+
+Throw an error if `𝕩` is not 1.
+
+ ! 1
+
+ ! 2
+
+ ! "hello"
+
+
+
+
+## `𝕨 ! 𝕩`: Dyad
+
+Throw an error with message `𝕨` if `𝕩` is not 1.
+
+ "hi" ! 1
+
+ "two" ! 2
+
+ "hello error" ! "hello"
+
+
+