---
title: "lock exists · RUAL Documentation"
description: "Checks if a lock already exists"
canonical: https://docs.rual.nl/block-types/locking/function_claim_lock_exists
language: en
---

# lock exists

This block is part of the [`locking`](https://docs.rual.nl/block-types/locking) group and was last modified in core [`v12.0.7`](https://docs.rual.nl/core-versions/120007).

Checks if a lock already exists

- flow `flow`

- key required `value` the lock key to be checked

- flow `flow`

- exists `condition`

A typical wiring for [lock exists](https://docs.rual.nl/block-types/locking/function_claim_lock_exists): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `key` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the lock exists block: typical wiring for lock exists.](https://docs.rual.nl/canvas-examples/function_claim_lock_exists.png)

### Version history

Introduced in [`v12.0.7`](https://docs.rual.nl/core-versions/120007).
