Boomla language docs
Operators
+
Overview
Types
Nil type
Boolean type
Numeric types
String type
Array type
Map type
Struct type
Function type
File type
Bucket type
Reference types
Box type
Expressions
Operators
Get expressions
Index expressions
Slice expressions
Grouping
Literals
Instantiations
Identifiers
Call expressions
Xml expressions
Function literals
As expressions
Statements
Import statement
Type declarations
Var declarations
Function declarations
Method declarations
Assign statement
If statement
For statement
Assert statement
Return statement
Fail statement
Panic statement
Yield statement
Break statement
Continue statement
Defer statement
IncDec statement
Expression statement
Block statement
Operators
Unary operatros
fn main() { println(-1) // sign negation println( ! true) // boolean negation }
Run
Binary operatros
fn main() { println(2 + 3) // add println(2 - 3) // substract println(2 * 3) // multiply println(7 / 3) // divide println(7 % 3) // modulo println(7 == 3) // equality println(7 != 3) // unequality println(7 < 3) // less println(7 <= 3) // less or equal println(true or false) // boolean or println(true and false) // boolean and }
Run
Note that Boomla does not have a greater than (
>
) and greater than or equal (
>=
) operator. Use the less than (
<
) and less than or equal (
<=
) operators instead. They simplify reading code by always having the smaller value on the left.