FunctionCopy link to clipboard
Returns false
if the value is null, an empty string, or an empty list. Otherwise returns true
.
See also:
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Any Type |
Value to be checked. |
ReturnsCopy link to clipboard
Boolean
Usage considerationsCopy link to clipboard
Replace if() and isnull() expressions with a!isNotNullOrEmptyCopy link to clipboard
This function is similar to the behavior of using if()
and isnull()
in combination to check for the absence of a value or an empty string or list.
For example, you could create an expression using if()
and isnull()
:
1
2
3
4
5
6
7
8
9
not(
or(
or(tostring(ri!input) = "", isnull(ri!input)),
if(isnull(ri!input),
true,
length(a!flatten(ri!input)) = 0
)
)
)
Copy
Or you could use a!isNotNullOrEmpty()
, which requires fewer lines of code:
1
a!isNotNullOrEmpty(ri!input)
Copy
ExamplesCopy link to clipboard
1
a!isNotNullOrEmpty(togroup(null))
Copy
Returns false
.
1
a!isNotNullOrEmpty("")
Copy
Returns false
.
1
a!isNotNullOrEmpty({1,2,3,4})
Copy
Returns true
.
1
a!isNotNullOrEmpty(cast(recordType!Address, null)
Copy
Returns false
.
1
a!isNotNullOrEmpty(recordType!Address)
Copy
Returns true
.
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Incompatible | Cannot be used to configure a process report. |
Process Events | Incompatible | Cannot be used to configure a process event node, such as a start event or timer event. |
Process Autoscaling | Compatible |