Operators
These are symbols that are built in to the language and can be used to perform simple operations on primitive data types.
Comparsison
knot
(123 == 123) == true;("foo" != "foo") == false;
knot
(123 == 123) == true;("foo" != "foo") == false;
Logical
knot
!true == false;true && false == false;false || true == true;
knot
!true == false;true && false == false;false || true == true;
Relational
knot
10 > 40 == false;10 < 40 == true;2.3 <= 5 == true;2.3 >= 5 == false;
knot
10 > 40 == false;10 < 40 == true;2.3 <= 5 == true;2.3 >= 5 == false;
Arithmetic
knot
2 + 3.5 == 5.5;4 - 10.3 == -6.3;4 * 4 == 16;3 / 4 == 0.75;2 ^ 3 == 8;
knot
2 + 3.5 == 5.5;4 - 10.3 == -6.3;4 * 4 == 16;3 / 4 == 0.75;2 ^ 3 == 8;