libs/ngx-pfe/pfe-conditions/or/or.model.ts

Description

"PFE_OR" condition. Will return "true" if any of the conditions that are under the condition are true.

Example :
{
  "type": "PFE_OR",
  "conditions": [
    {
      "type": "PFE_EXPRESSION",
      "expression": "{$.myFancyExpression}"
    },
    {
      "type": "MY_FANCY_TYPE"
    }
  ]
}

Extends

PfeBaseCondition

Relationships

Used by

No results matching.

Depends on

Index

Properties

Properties

conditions
conditions: CONDITION[]
Type : CONDITION[]
type
type: typeof PFE_OR
Type : typeof PFE_OR
import { DefaultCondition, PfeBaseCondition } from '../conditions.model';

export const PFE_OR = 'PFE_OR';

/**
 * "PFE_OR" condition.
 * Will return "true" if any of the conditions that are under the `condition` are true.
 * @example
 *
 * ```json
 * {
 *   "type": "PFE_OR",
 *   "conditions": [
 *     {
 *       "type": "PFE_EXPRESSION",
 *       "expression": "{$.myFancyExpression}"
 *     },
 *     {
 *       "type": "MY_FANCY_TYPE"
 *     }
 *   ]
 * }
 * ```
 */
export interface PfeOrCondition<CONDITION = DefaultCondition> extends PfeBaseCondition {
  type: typeof PFE_OR;
  conditions: CONDITION[];
}

results matching ""

    No results matching ""