Skip to main content

String Operators

String operators can be used to handle strings.

The following table describes the operators.

String operators

OperatorDescription
'Texts enclosed in small quotes are interpreted as strings.
"Enclose text in quotes when the literal contains blank spaces or other reserved characters. Quotes is a special string operator. Based on its position in the expressions, it forces the string to be interpreted as an Attribute. If the literal is a string, [always]{.underline} use single quotes to avoid misinterpretation.
&Literals terminating with & are matched as \'Ends With\'. (Apply to attribute only)

Use String operator when the literal contains reserved characters or blank space, when the literal is a string or when the literal is not equal the entire name and Ends With match has to be applied.

Examples

'My string: a'

Although the literal contains blanks and reserved characters, it will be properly supported.

The result will be the string My string: a.

Rec_mass&

All operands ending with "Rec_mass" will be processed.

Note

Don't get confused by single and double quotes.

  • Single quotes are used only to define strings.

  • Double quotes are used to instruct the search engine or Studio to evaluate the enclosed literal(s) as the name of the attribute from which to read the value.

While working with Studio, double quotes can also be used in conjunction with variables. Consider the following example:

A variable contains the name of an attribute.

$$Name = 'o_Rec_Test3'

Let's print the attribute name and the attribute value.

Attribute: {$$Name} Value: {"$$Name"}

The result will be: Attribute: o_rec_test3 Value: 0

Note

Single quote is the character '. Don't use similar characters such as or , they are similar but not equal to.
Same for double quotes always use " not the other similar characters