Validates a value if it is null
value
the value to validate.
Any
-
Yes
Returns the validation value.
Boolean
In this example, we will check whether a value is null and print the result in the console.
Drag a button component into the canvas and open the Action tab. Select the press event of the button and drag the console function to the event flow.
button
Action
press
console
Call the function isNull inside the console function.
isNull
Enter the value to be validated. In this example, we will enter the value "12".
The console will print false since it's not a null value.
false
Last updated 1 year ago