---
title: "tool if · RUAL Documentation"
description: "Pick a tool based on a condition: outputs the true tool when the condition holds, otherwise the false tool. Add elseif branches for more cases."
canonical: https://docs.rual.nl/block-types/anthropic/anthropicconnection_tool_branch
language: en
---

# tool if

This block is part of the [`anthropic`](https://docs.rual.nl/block-types/anthropic) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Pick a tool based on a condition: outputs the true tool when the condition holds, otherwise the false tool. Add elseif branches for more cases.

- True required `anthropictool`

- False required `anthropictool`

- condition required `condition`

- tool `anthropictool` The selected tool; wire into a message block's tools pin.

| `tool if else` |
| --- |
| `conditional tool` |
| `tool branch` |

A typical wiring for [tool if](https://docs.rual.nl/block-types/anthropic/anthropicconnection_tool_branch): the `tool` out pin feeds [send message](https://docs.rual.nl/block-types/anthropic/anthropicconnection_message).

![Studio canvas example for the tool if block: typical wiring for tool if.](https://docs.rual.nl/canvas-examples/anthropicconnection_tool_branch.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
