ifUnavailable
Function: ifUnavailable(test, default)
Returns default if the passed value is Unavailable. Otherwise returns the test value.
Values can only be Unavailable in an action flow. A value will be Unavailable if the attribute is not mapped, or the attribute has not been provided, or the user does not have permission for that attribute on a grid or form.Â
Syntax
ifUnavailable(test, default)
Argument | Type | Description |
---|---|---|
test | Any | The value to be checked |
default | Any | The default value to return if test is Unavailable |
Examples
ifUnavailable(in.Name, "Name is Unavailable")
Returns the string Name is Unavailable if in.Name has not been mapped
ifUnavailable(_NULL, "Testing")
Returns NULL
ifUnavailable("I have a name", "Name is Unavailable")
Returns string I have a name