equalText(): Comparing Text Values
equalText() compares text values and returns a boolean result. It is useful for labels, user choices, parsed fields, and rule-based calculator logic where lexical equality—not numerical equivalence—is required.
Text is not a number
Whitespace, capitalization, and formatting can affect a text comparison depending on the input values. Normalize imported text deliberately before comparison when your rule should ignore such differences. Use compareText() when you need an ordering, and concat() when constructing a standardized label.
Do not use text equality to compare numerical results. Use equal() for exact numeric values, or a tolerance approach with abs() for decimals. Combine text conditions with and() or or() to write clear validation rules.