Table of Contents

AsText(expression)

Category: Special function


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.


Arguments

ArgumentTypeDescription
expressionAnyThe value, result of an expression, or an error to be converted into a text value.

Return value type: Text


Remarks


Examples

astext( 'January' )  //Returns 'January '
astext( 125 )  //Returns '125'
astext( 2 + 2 = 4 )  //Returns 'TRUE'
astext( 2 + 2 = 5 )  //Returns 'FALSE'
astext( 1 / 0 )  //Returns 'Error: Division by zero'


See also