equalText

equalText(x, y)

Try it yourself:

See also:

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.

Try Equal Text in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions