Core Features

Operators

Learn about the operators Cambo supports.

Arithmetic Operators

OperatorDesciptionExample
+Adds together two valuesa + b
-Substract one value from anothera - b
*Multiplies two valuesa * b
/Divide one value by anothera / b
%Returns the division remaindera % b
++Increases the value of a variable by 1a++ or ++a
--Decreases the value of a variable by 1a-- or --a
**One value raised to the power of anothera ** b

Assignment Operators

OperatorDesciptionExampleEquivalent To
=Assigna = ba = b
+=Add and assigna += ba = a + b
-=Substract and assigna -= 1a = a - b
*=Multiply and assigna *= 1a = a * b
/=Divide and assigna /= 1a = a / b
%=Modulus and assigna %= 1a = a % b
**=Power and assigna **= ba = a ** b
&=Bitwise AND and assigna &= ba = a & b
|=Bitwise OR and assigna |= ba = a | b
^=Bitwise XOR and assigna ^= ba = a ^ b
>>=Left shift and assigna >>= ba = a >> b
<<=Right shift and assigna <<= ba = a << b

Comparision Operator

OperatorNameExample
==Equal toa == b
!=Not equala != b
>Greater thana > b
<Less thana < b
>=Greater than or equal toa >= b
<=Less than or equal toa <= b

Logical Operator

OperatorNameDesciptionExample
&&Logical andReturns true if both statements are truea < b && c < d
||Logical orReturns true if one of the statements is truea < b || c < d
!Logical notReverse the result, returns false if the result is true!(a < b && c < d)
Copyright © 2026