syntax:functions:astext
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| syntax:functions:astext [2015/04/17 22:51] – elenap | syntax:functions:astext [2021/09/12 23:08] (current) – craigt | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== AsText(value) ===== | + | ====== AsText(expression) ====== |
| + | Category: | ||
| - | This function converts | + | \\ |
| + | =====Description===== | ||
| + | This function converts //value// to text. | ||
| + | |||
| + | \\ | ||
| + | =====Use cases===== | ||
| This is useful when you wish to validate the contents of a field or retrieve the text value of a field. | This is useful when you wish to validate the contents of a field or retrieve the text value of a field. | ||
| - | | + | \\ |
| + | =====Arguments===== | ||
| + | ^Argument^Type^Description^ | ||
| + | |expression|Any|The value, result of an expression, or an error to be converted into a text value.| | ||
| + | |||
| + | **Return value type:** Text | ||
| + | |||
| + | \\ | ||
| + | =====Remarks===== | ||
| + | * Numbers are converted into their text representation. | ||
| + | | ||
| + | * Empty cells are converted into empty strings (i.e. '' | ||
| * Text remains itself. | * Text remains itself. | ||
| * Errors are converted into text with error message. | * Errors are converted into text with error message. | ||
| - | | + | * This function never produces errors, only text. |
| - | * Numbers are converted into their text representation. | + | |
| - | | + | |
| - | ^ Example | + | \\ |
| - | | astext( ' | + | =====Examples===== |
| - | | astext( 125 ) | + | |
| - | | astext( 2 + 2 = 4 ) | + | astext( 125 ) |
| - | | astext( 2 + 2 = 5 ) | + | astext( 2 + 2 = 4 ) |
| - | | astext( 1 / 0 ) | + | astext( 2 + 2 = 5 ) |
| + | astext( 1 / 0 ) | ||
| + | \\ | ||
| + | =====See also===== | ||
| + | * [[syntax: | ||
| - | === See also === | ||
| - | * [[syntax: | ||
syntax/functions/astext.1429325474.txt.gz · Last modified: by elenap