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

    Type Alias NotExpression

    Negation expression that inverts the result of another expression.

    Matches objects that do NOT match the contained expression. Use this to exclude objects based on certain criteria, such as "not closed" or "not in a specific list of values".

    The NOT operator can be applied to any type of expression, including basic comparisons, AND/OR combinations, and IN expressions.

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

    const notClosed: NotExpression = {
    op: Operator.NOT,
    exp: { key: 'status', op: Operator.EQUALS, exp: 'closed' },
    };
    import { NotExpression, Operator } from '@limetech/lime-web-components';

    const notInExcludedIndustries: NotExpression = {
    op: Operator.NOT,
    exp: {
    key: 'industry',
    op: Operator.IN,
    exp: ['retail', 'hospitality', 'construction'],
    },
    };
    import { NotExpression, Operator } from '@limetech/lime-web-components';

    const notSmallAndClosed: NotExpression = {
    op: Operator.NOT,
    exp: {
    op: Operator.AND,
    exp: [
    { key: 'status', op: Operator.EQUALS, exp: 'closed' },
    { key: 'value', op: Operator.LESS, exp: 1000 },
    ],
    },
    };
    type NotExpression = {
        exp: Expression;
        op: NOT;
    }
    Index

    Properties

    Properties

    Expression to negate.

    op: NOT

    Negation operator.