Text values

Revision as of 17:44, 26 August 2015 by DKontotasiou (talk | contribs)


Analytica User Guide >

You specify a text value by enclosing text between single quotes, or between double quotes, for example:

'A', "A25", 'A longish text - with punctuation.'

A text value can contain any character, including any digit, comma, space, and new line. To include a single quote(') or apostrophe, type two single quotes in sequence, such as:

'Isnt this easy?'

The resulting text contains only one apostrophe. Or you can enclose the text value in double quotes:

"Don't do that!"

Similarly, if you want to include double quotes, enclose the text in single quotes:

'Did you say "Yes"?'

You can enter a text value directly as the value of a variable, or in an expression, including as an element of a list (see Creating an index] or edit table (see Defining a variable as an edit table). Analytica displays text values in results without the enclosing quotes. Also see Converting number to text.

For comparison and sort order for text, see [Operators|Alphabetic ordering of text values]]. For functions that work with text values, see Text functions.

For converting between numbers and text, see Numbers and text.

See Also

Boolean or truth values <- Text values -> Operators
Comments


You are not allowed to post comments.