Application icon

Split

This function is used to split a field or named variable into two parts based on the first or last occurrence of a delimiter in the text.

If the delimiter is found, the original field or named variable will be set to everything to the left of the delimiter (trailing spaces removed). Everything to the right of the delimiter (leading spaces removed) will be saved to the specified right portion. The action test state will be set to true.

If the delimiter is not found, the right portion will be cleared and the acton test state will be set to false.

Note that when the source is a named variable, the right portion destination must be a named variable. When named variables are used and the execution mode is stepwise, the statement is only executed once.

All text fields may contain any of the escape sequences described in Escape Sequences.

When run stepwise, the delimiter is only evaluated once. The action test state will be set to true if any fields were split.