Skip to content

Less Than Or Equal Operator

IsaacShelton edited this page Mar 21, 2022 · 1 revision

<= Operator

The <= operator is used for testing whether one value is less than or equal to another.

1 <= 2

Override

The <= operator can be defined for additional types or type combinations with the following:

func __less_than_or_equal__(a $A, b $B) bool

where $A and $B are any valid types

See __less_than_or_equal__ for more information.

Clone this wiki locally