Document toolboxDocument toolbox

Handling Special Characters In Conditional Expression

In Qualitia Automation Studio, while adding data for validating conditional expression, you can add the string values. Sometimes, these string values can contain JavaScript special characters, such as double quotes, single quotes, and backslash (",',\).

When adding string with such characters as data into Conditional Expression, you must use an escape character. As the name suggests, this escape character allows you to get the desired output without treating these characters as special. You can use backslash (\) as a JavaScript escape character in case you have characters like double quotes, single quotes, and backslash (",',\) in the conditional expression data.

As shown in the screenshot below, if you are using values like single quotes, double quotes or backslash in conditional expression, you need to use escape character (/).

Important Note

In case you have any special characters into the variable value, Qualitia automatically handles them while using it as a conditional expression data.

For example, if you are using StoreVariable action to store some value and that value contains JavaScript special characters. Later, if you use that variable in the conditional expression, you no need to handle special characters from the value. Qualitia automatically handles them while using it as conditional expression data.