Skip to content

cupertino-files / Predicate

Interface: Predicate

Defined in: src/tst/predicates.ts:231

A decoded condition.

Properties

forConditionalStyle

forConditionalStyle: boolean

Defined in: src/tst/predicates.ts:237

Set on conditional-formatting predicates, absent on filters.


formula

formula: RenderedFormula

Defined in: src/tst/predicates.ts:249

Full render detail, including anything the renderer could not name.


inconsistent

inconsistent: boolean

Defined in: src/tst/predicates.ts:255

True when predicateType disagrees with the formula's operator. Never seen in the corpus; a caller writing predicates should treat it as a bug, and a caller reading one should trust operator.


operands

operands: PredicateOperand[]

Defined in: src/tst/predicates.ts:245

Operands in param_value0..2 order, unused slots dropped.


operator

operator: PredicateOperator | undefined

Defined in: src/tst/predicates.ts:243

The comparison, read from the formula's terminal operator node. undefined when the formula is something richer than a comparison — a "text contains" rule, say, which is a function call.


predicateType

predicateType: number | undefined

Defined in: src/tst/predicates.ts:233

Raw predicate_type; see PREDICATE_TYPE_OPERATORS.


qualifier1

qualifier1: number | undefined

Defined in: src/tst/predicates.ts:234


qualifier2

qualifier2: number | undefined

Defined in: src/tst/predicates.ts:235


text

text: string

Defined in: src/tst/predicates.ts:247

The condition as text, e.g. THIS_CELL<0.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.