Skip to content

Commit

Permalink
Add docs for logical expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
veera-sivarajan committed Sep 10, 2023
1 parent 9469635 commit adbebcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions language.org
Original file line number Diff line number Diff line change
Expand Up @@ -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~.

Expand Down

0 comments on commit adbebcc

Please sign in to comment.