---
title: "repeat · RUAL Documentation"
description: "This method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together."
canonical: https://docs.rual.nl/block-types/value/value_repeat
language: en
---

# repeat

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

This method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.

- value required `value`

- length required `number` Indicating the number of times to repeat the string.

- value `value`

Outputs the value concatenated length times. A length of 0, an unwired length, or a NEGATIVE length all output "" without erroring (unlike JS repeat, which throws on negative counts).

A typical wiring for [repeat](https://docs.rual.nl/block-types/value/value_repeat): the `value` out pin feeds [convert to uppercase](https://docs.rual.nl/block-types/value/value_to_uppercase).

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

### Version history

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