Comparison Operators
if (x == y) then
message("x is equal to y");
else
message("x is not equal to y");
end if;if (x != y) then
message("x is not equal to y");
else
message("x is equal to y");
end if;if (x < y) then
message("x is less than y");
end if;
if (x <= y) then
message("x is less than or equal to y");
end if;
if (x > y) then
message("x is greater than y");
end if;
if (x >= y) then
message("x is greater than or equal to y");
end if;Last updated