Contact Us 1-800-596-4880

Convert String

This Action Step converts a given string or variable to any other variable type and makes it available as a set of new variables.

Properties

Conversion Source The string or variable that is converted.

Regular Expression You may define a regular expression to use only a specific part of the given Conversion Source. For example, if your conversion source is "Price: €200" and you only want to use the number as an integer variable, you can set the Regular Expression [0-9]+ to extract the number from the conversion source. More information about regular expressions can be found in section Using Regular Expressions.

Inbound Variables

Conversion Source The string or variable that is converted.

Regular Expression You may define a regular expression to use only a specific part of the given Conversion Source. For example, if your conversion source is "Price: €200" and you only want to use the number as an integer variable, you can set the Regular Expression [0-9]+ to extract the number from the conversion source. More information about regular expressions can be found in section Using Regular Expressions.

Outbound Variables

AsBool The Conversion Source as a logical value (True or False). If the input variable is a number less than ⇐0 or not the string true or True, it returns False.

AsInt The Conversion Source as an integer number. If the Conversion Source does not contain a number, 0 is returned; otherwise it will be the first uninterrupted sequential digits from the Source. Decimal places are truncated in the case of floating point numbers.

AsDouble The Conversion Source as a floating point number.

AsString The Conversion Source as string value.