Operator | Name |
---|---|
== | Equal to |
!= | Not equal to |
< | Less than |
> | Greater than |
<= | Less than or equal to |
>= | Greater than or equal to |
if x == y;
print "x equals y";
else;
print "x does not equal y";
end;
if x != y;
print "x does not equal y";
else;
print "x equals y";
end;
if x < y;
print "x is less than y";
else;
print "x is greater than or equal to y";
end;
if x > y;
print "x is greater than y";
else;
print "x is less than or equal to y";
end;
if x <= y;
print "x is less than or equal to y";
else;
print "x is greater than y";
end;
if x >= y;
print "x is greater than or equal to y";
else;
print "x is less than y";
end;