Skip to content

NumericComparison

Algorand TypeScript


Algorand TypeScript / index / <internal> / NumericComparison

NumericComparison<T> = T | { lessThan: T; } | { greaterThan: T; } | { greaterThanEq: T; } | { lessThanEq: T; } | { between: readonly [T, T]; } | { not: T; }

Defined in: util.ts:34

Defines possible comparison expressions for numeric types

T

T

{ lessThan: T; }

lessThan: T

Is the subject less than the specified value

{ greaterThan: T; }

greaterThan: T

Is the subject greater than the specified value

{ greaterThanEq: T; }

greaterThanEq: T

Is the subject greater than or equal to the specified value

{ lessThanEq: T; }

lessThanEq: T

Is the subject less than or equal to the specified value

{ between: readonly [T, T]; }

between: readonly [T, T]

Is the subject between the specified values (inclusive)

{ not: T; }

not: T

Is the subject not equal to the specified value