-
Notifications
You must be signed in to change notification settings - Fork 0
Comparison operators
Mel Florance edited this page Jul 23, 2020
·
5 revisions
Bird Lang contains the following operators:
| Symbol | Name |
|---|---|
| == | Equality |
| != | Difference |
| > | Greater than |
| < | Less than |
| >= | Greater or equal |
| <= | Less or equal |
You can check the quality of two factors using the == operator:
Example:
> 3.14159265 == PI
trueYou can check the difference of two factors using the != operator:
Example:
> 1.618 != 1.6
trueYou compare the greatest factor using the > operator:
Example:
> 1 > 2
falseYou compare the lowest factor using the < operator:
Example:
> 1 < 2
trueYou compare the greatest or equal factor using the >= operator:
Example:
> 1 >= 2
falseYou compare the lowest or equal factor using the >= operator:
Example:
> 1 <= 2
true