lock exists
This block is part of the locking group and was last modified in core v12.0.7.
lock exists v12.0.7 Checks if a lock already exists
In pins 1 + flow
- flow
flow - key required
valuethe lock key to be checked
Out pins 1 + flow
- flow
flow - exists
condition
Outputs condition=true only when the lock key currently exists in Redis (keys are prefixed per entity and per simulation mode). A falsy key input (nil, "", 0, false) or a Redis error both yield condition=false, indistinguishable from a missing lock. Example: key="" -> exists=false without Redis ever being checked.
A typical wiring for lock exists: a function trigger starts the flow; value feeds the key pin; the flow out pin feeds debug.
Version history
Introduced in v12.0.7.
Back to
locking Return to the main group to view all sub-groups Back to locking Return to the group to view all blocks within this group 