From adbebcc1fb70520b60f48e25f51bd1926c0b9f75 Mon Sep 17 00:00:00 2001 From: Veera Date: Sun, 10 Sep 2023 18:51:48 -0400 Subject: [PATCH] Add docs for logical expressions --- language.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/language.org b/language.org index b32e5a9..64e4031 100644 --- a/language.org +++ b/language.org @@ -60,6 +60,10 @@ Here, both ~a~ and ~b~ are values of type ~i32~. All comparison expressions eval 4. Lesser Equal: ~a <= b~ 5. Equality: ~a == b~ 6. Non Equality: ~a != b~ +*** Logical +Here, both ~a~ and ~b~ are values of type ~bool~. Both the logical expressions evaluate to a value of type ~bool~. +1. Or: ~a || b~ +2. And: ~a && b~ ** Print Statement It is a compiler built-in function that takes a format string and the expressions to be printed as arguments. The ~{}~ s inside the format string will be replaced by the value of expressions and displayed on a newline in ~stdout~.