Lime Web Components API Documentation - v7.4.0
    Preparing search index...

    Type Alias ExpressionValue

    ExpressionValue: string | number | boolean | null

    Allowed value types for expression comparisons.

    Property values in expressions can be strings, numbers, booleans, or null. The type must match the property's data type in the limetype schema.

    import { BasicExpression, Operator } from '@limetech/lime-web-components';

    const stringValue: BasicExpression = {
    key: 'status',
    op: Operator.EQUALS,
    exp: 'active',
    };

    const numberValue: BasicExpression = {
    key: 'value',
    op: Operator.GREATER,
    exp: 50_000,
    };

    const booleanValue: BasicExpression = {
    key: 'is_archived',
    op: Operator.EQUALS,
    exp: false,
    };

    const nullValue: BasicExpression = {
    key: 'closed_date',
    op: Operator.EQUALS,
    exp: null,
    };