---
title: "elseif · RUAL Documentation"
description: "RUAL object block."
canonical: https://docs.rual.nl/block-types/object/object_elseif
language: en
---

# elseif

This block is part of the [`object`](https://docs.rual.nl/block-types/object) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

- default required `object`

- else if required `condition`

- then required `object`

- object `object`

Data selector: outputs the then input paired with the FIRST elseif condition (in pin order) that resolves exactly boolean true; when none is true, outputs the default input. A nil winning input becomes {}. Only the winning input's pure-data producer chain is evaluated.

A typical wiring for [elseif](https://docs.rual.nl/block-types/object/object_elseif): the `object` out pin feeds [custom field](https://docs.rual.nl/block-types/object/object_get_custom_field).

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

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
