Validation.isNull
Description
Validates a value if it is null
Input / Parameter
value
The value to to validate.
Any
-
-
Yes
Output
Returns the validation value.
Boolean
Callback
N/A
Video
Coming Soon.
Example
In this example, we will check whether a value is null and get the validation using Validation.isNull
and Result.setApi
function.
Step
Create an api and select on any api method tab, and select the secondary tab
Result
. Selectjson
format and add new json keyisNull
as the key withboolean
type.
Select the secondary tab
Action
, Call the functionResult.setApi
and change the param type ofisNull
to subflow/function, dragValidation.isNull
on it and addnotnull
value on it'svalue
param.
Result
Select the secondary tab
Test
, click on run button and check the json response, it will show {"isNull": false} becausenotnull
is not a null value.
Links
Last updated