% Arithmetic operators
rem % modulo (remainder)
div % floor division
% Logical operators
== % equal
/= % not equal
and % AND
or % OR
xor % XOR
not % NOT
% Bitwise operators
band % AND
bor % OR
bxor % XOR
bnot % NOT
% if-else
if
A < B ->
% statement;
A == B ->
% statement;
true ->
% default statement
end.
% case statement
case A of
5 -> io:fwrite("five");
6 -> io:fwrite("six")
end.