Difference between revisions of "Text values"

Line 23: Line 23:
 
==See Also==
 
==See Also==
 
* [[Operators#Alphabetic ordering of text values|Alphabetic ordering of text values]]
 
* [[Operators#Alphabetic ordering of text values|Alphabetic ordering of text values]]
* [[Text functions]]  
+
* [[Text functions]]
 +
* [[IsText]]
 
* [[Text Concatenation Operator: &]]
 
* [[Text Concatenation Operator: &]]
 
* [[Converting Numbers to Text]]
 
* [[Converting Numbers to Text]]
Line 31: Line 32:
 
* [[Objects and values]]
 
* [[Objects and values]]
 
* [[Choice]]
 
* [[Choice]]
 +
* [[Multiple formats in one table]]
 +
  
 
<footer>Boolean or truth values / {{PAGENAME}} / Operators</footer>
 
<footer>Boolean or truth values / {{PAGENAME}} / Operators</footer>

Revision as of 00:02, 23 August 2016


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:

'Isn''t 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 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


Comments


You are not allowed to post comments.