syntax:functions:astext
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
syntax:functions:astext [2015/01/29 22:19] – created dmitry | syntax:functions:astext [2015/04/17 22:51] – elenap | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== AsText(value) ===== | ===== AsText(value) ===== | ||
- | Converts | + | This function converts |
+ | This is useful when you wish to validate the contents of a field or retrieve the text value of a field. | ||
- | Boolean is converted into TRUE and FALSE. | + | * Boolean is converted into TRUE and FALSE. |
+ | * Text remains itself. | ||
+ | * Errors are converted into text with error message. | ||
+ | * Empty cells are converted into empty strings (i.e. '' | ||
+ | * Numbers are converted into their text representation. | ||
+ | * This function never produces errors, only text | ||
- | Text remains itself. | + | ^ Example |
+ | | astext( ' | ||
+ | | astext( 125 ) | 125 | | ||
+ | | astext( 2 + 2 = 4 ) | TRUE | | ||
+ | | astext( 2 + 2 = 5 ) | FALSE | | ||
+ | | astext( 1 / 0 ) | Error: Division by zero | | ||
- | Errors are converted into text with error message. | ||
- | Empty cells are converted into empty strings | + | === See also === |
- | + | * [[syntax: | |
- | Numbers are converted into their text representation. | + | |
- | + | ||
- | This function never produces errors, only text. | + |
syntax/functions/astext.txt · Last modified: 2021/09/12 23:08 by craigt