equals

Full name: taxi.stdlib.equals

Signature

declare extension function <A,B> equals(a:A, b:B): Boolean

Description

Returns true if two values are equal. Equality is checked by value and type — values of different semantic types are not equal even if their underlying values match.

find {
   match: Boolean = OrderStatus.equals("PENDING")
}

Examples

Compares two string values — matching pair returns true, non-matching returns false.

Try it out

Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed
Next
Welcome to Taxi