WarUI

Built-in logical and text functions

GRID-A13-F09P1baselinePlanned

This set adds logical functions (IF, IFS, AND, OR, NOT, IFERROR, IFNA, SWITCH) and text functions (CONCAT, TEXTJOIN, LEFT, RIGHT, MID, LEN, UPPER, LOWER, TRIM, SUBSTITUTE, TEXT). Short-circuit behaviour and Unicode handling are specified explicitly.

Planned. This page shows the specification from issue #192. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A contacts grid with first name, last name and score, plus formula columns for full name and a pass/fail label.

Expected behavior

The full name and label update live. IF does not evaluate the branch it does not take, so a #DIV/0! in that branch does not surface. LEN counts emoji as single characters, following the documented rule.

Planned API surface

method: formulaEngine.getFunctionInfo(name)option: formulas.stringComparison ('caseInsensitive'|'caseSensitive')

Acceptance criteria

  • IF, IFS, AND, OR and IFERROR short-circuit as documented. (pending)
  • Text functions treat strings as Unicode code points (or grapheme clusters), following one documented choice. (pending)
  • The TEXT function supports a documented subset of number format codes. (pending)
  • Comparison respects the stringComparison option. (pending)