True, null or empty?
FreeLogic@rabbinatix/true-null-or-empty by Rabbinatixupdated Oct 4, 2026
How logic reads a value as a condition, and whether it is null or empty.
A reference for conditions: "", "false", 0, false and null are false; every other value, even "no" and [], is true. Is Empty is true for null, blank text, [] and {}.
Shows: To Boolean, Is Null, Is Empty.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick True, null or empty. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
value: Any value
Outputs
truthy: Yes / No
isNull: Yes / No
isEmpty: Yes / No
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 5
True, null or empty
value
To Boolean, Data. 1 input, 1 output. step 2 of 5
To Boolean
value
result
Is Null, Validation. 1 input, 1 output. step 3 of 5
Is Null
value
result
Is Empty, Validation. 1 input, 1 output. step 4 of 5
Is Empty
value
result
Return, Input / output. 4 inputs, 0 outputs. step 5 of 5
Return
truthy
isNull
isEmpty
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 5/5 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| The text "false" | {"value":"false"} | {"truthy":false,"isNull":false,"isEmpty":false} | |
| Blank text | {"value":" "} | {"truthy":true,"isNull":false,"isEmpty":true} | |
| Zero | {"value":0} | {"truthy":false,"isNull":false,"isEmpty":false} | |
| An empty list | {"value":[]} | {"truthy":true,"isNull":false,"isEmpty":true} | |
| Null | {"value":null} | {"truthy":false,"isNull":true,"isEmpty":true} |
Try it
Versions
In this package
True, null or empty (entry)
