Function Block STRTR

The Function Block STRTR replaces multiple strings without processing them twice.

Note: This Function Block can have more than three inputs. You can right-click on the Function Block to add another input. Note that the inputs are to be considered in pairs.

Input STR

Defines the string to be processed.

Inputs FROM1..FROM#

Defines the strings that will be replaced by the string below. That is, FROM1 is replaced with TO1 and so on.

If an empty string is present at the input, the replacement is ignored.

Inputs TO1..TO#

Defines the new string to be inserted in place of the string above. That is, FROM1 is replaced with TO1 and so on.

Output

Returns a string that has been replaced by all FROM inputs to the corresponding TO inputs. The longest FROM value is applied first.