Describe a value
FreeLogic@rabbinatix/describe-a-value by Rabbinatixupdated Oct 4, 2026
The type of any value, and its size: characters, items or fields.
Type Of gives string, integer, number, boolean, object, array or null. Switch on it measures strings, lists and objects; other types have no size.
Shows: Type Of, Switch on text, String Length, Length, Keys.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Describe a value. 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
type: Text
size: Whole number (may be empty)
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 11
Describe a value
value
Type Of, Data. 1 input, 1 output. step 2 of 11
Type Of
value
type
Switch, Flow control. 2 inputs, 4 outputs. step 3 of 11
Switch
value
string
array
object
Default
String Length, String. 1 input, 1 output. step 4 of 11
String Length
text
length
Length, Collection. 1 input, 1 output. step 6 of 11
Length
array
length
Keys, Object. 1 input, 1 output. step 8 of 11
Keys
object
keys
Length, Collection. 1 input, 1 output. step 9 of 11
Length
array
length
Return, Input / output. 3 inputs, 0 outputs. step 5 of 11
Return
type
size
Return, Input / output. 3 inputs, 0 outputs. step 7 of 11
Return
type
size
Return, Input / output. 3 inputs, 0 outputs. step 10 of 11
Return
type
size
Return, Input / output. 3 inputs, 0 outputs. step 11 of 11
Return
type
size
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 · 4/4 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| Text | {"value":"hello"} | {"type":"string","size":5} | |
| A list | {"value":[1,2,3]} | {"type":"array","size":3} | |
| An object | {"value":{"a":1}} | {"type":"object","size":1} | |
| A decimal | {"value":3.5} | {"type":"number","size":null} |
Try it
Versions
In this package
Describe a value (entry)
