User Tools

Site Tools


syntax:functions:ifempty

This is an old revision of the document!


IfEmpty(expression1, expression2)

Category: Logical function


Description

This function returns the result of expression2 if the result of expression1 is empty. Otherwise, it returns the result of expression1.


Arguments

ArgumentTypeDescription
expression1ExpressionAny expression that could potentially have an 'empty' result being tested for.
expression2ExpressionAny expression.

Return value type: Any (The data type of the return value of expression1 or expression2.)


Remarks

If both expression1 and expression2 evaluate to an empty value, an empty value is returned.


Examples

ifempty( [FieldA], 'Other' ) //Returns 'Other' (assuming [FieldA] is empty)
ifempty( [FieldA], 'Other' ) //Returns 'Another' (assuming [FieldA] = 'Another')


See also

syntax/functions/ifempty.1629096917.txt.gz · Last modified: 2021/08/16 02:55 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki