Skip to main content

Logical text condition

The text condition function is a logical function that returns true if the condition is met, and false otherwise.

Example
Condition: Starts with Hello
Input text: Hello World
Output: true

Parameters

Conditionrequired

The condition to be fulfilled, composed of an operator and a static text value (for example: Contains some text). The available operators are:

  • Equals
  • Contains
  • Length equals
  • Length greater than
  • Length less than
  • Value in — the condition is met when the input equals one of the listed values.
  • Starts with
  • Ends with

There is no regular-expression operator. The Length operators compare the byte length of the text (a multi-byte character counts for more than one).

Input

Textrequired

The text to be evaluated by the condition.

Compare to

Optional second text. When wired, the operator is applied between the two inputs (Text on the left, Compare to on the right) and the static value of the condition is ignored. In this mode, Value in splits the Compare to text on commas (trimming whitespace) and checks whether Text equals one of the parts, and the Length operators compare the lengths of the two inputs.

Output

Boolean

The result of the condition (true or false).