Skip to content

cupertino-files / PREDICATE_TYPE_CONDITIONS

Variable: PREDICATE_TYPE_CONDITIONS ​

const PREDICATE_TYPE_CONDITIONS: ReadonlyMap<number, string>

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

The filter menu's conditions by predicate_type, as the app writes them: each code paired with the condition the rule was authored under in olekristensen-v26.0-mac-filter-conditions.numbers and its text predecessor, one rule per column, column named for its condition.

A date condition over a unit carries the unit in qualifier1 (2 day, 3 week, 4 month, 5 year, 8 quarter) and, where it points, the direction in qualifier2 (6 ago, 7 from now); "this week" and the rest of the "this" family share code 33 and differ by the unit alone. "In the top" and "in the bottom" are 30 and 31, qualifier1 saying values (10) or percent (9); the average, duplicate and unique conditions carry a whole-column SUM as their formula, which the engine evaluates by the code rather than the formula. Duration comparisons have their own codes (38 equal, 40 greater than, 44 between measured; the rest of the duration family is unmeasured), and a checkbox test compiles to a function the registry does not name, index 326, compared with the checkbox control's interaction type 8. The formulas for "is" and "is not" wrap their IF branches in thunk nodes.

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