IS_KEY_BEFORE()

All functions > CORE > IS_KEY_BEFORE()

True when the first identity key is strictly before the second

Signatures

Returns: Native ordering of the base type; equal keys are FALSE

IS_KEY_BEFORE(a: T#E, b: T#F) → BOOLEAN
sql
ParameterTypeRequiredDescription
aT#EYesLeft identity key
bT#FYesRight identity key of the same family and base type

Signature notes: Both arguments must be keys of one entity family. Plain values use <. DATE, TIMESTAMP, and geography keys already accept <.

See also

  • KEY_TO_SCALAR

  • KEY_PAIR