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. Selectjsonformat and add new json keyisNullas the key withbooleantype.

Select the secondary tab
Action, Call the functionResult.setApiand change the param type ofisNullto subflow/function, dragValidation.isNullon it and addnotnullvalue on it'svalueparam.

Result
Select the secondary tab
Test, click on run button and check the json response, it will show {"isNull": false} becausenotnullis not a null value.

Links
Last updated