allOf
Full name: taxi.stdlib.allOf
Signature
declare function allOf(values:Boolean...): BooleanDescription
Returns true only if all provided boolean values are true. Equivalent to logical AND.
This function ensures that every condition in a set must be satisfied.
// Check if a user can purchase a premium item
type CanPurchasePremium inherits Boolean by allOf(IsActive, HasSufficientFunds, IsVerified)Examples
This example demonstrates how to use allOf() to verify if a user meets all required criteria for premium access.
Try it out
Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed