> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.itential.com/itential-platform/2023-2/studio/tasks/reference/repeat/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server. # repeat > Use the repeat task to copy a string a specified number of times and concatenate the copies into a new string. The `repeat` task copies a string a specified number of times. A new string is constructed from the original string containing the specified number of copies concatenated together. ## Potential use case Suppose you have a name in a list, and you need to fill out predefined spaces with the same name. You could use this task to repeat the name as required. ## Properties | Incoming | Type | Description | | -------- | ------ | ---------------------------------------------------------- | | `str` | String | Required. The string to copy. | | `count` | Number | Required. The number of times to repeat (copy) the string. | | Outgoing | Type | Description | | ---------------- | ------ | --------------------------------------------------------------------------- | | `repeatedString` | String | A new string containing the specified number of copies of the given string. | ## Example In this example, the incoming reference variable is "Hello World" and the `count` number is `2`, which means the task will return a repeated copy of the `str` variable two times. ![](/_fern-img/1f0913f2f2b88bb652e3729b4e1b75c24061ae4ae06105a389f5c49ecd2c5337.webp) The result of this task creates a new string that has been repeated the desired number of times — the original `str` followed by a repeated copy of itself: `Hello WorldHello World`. ![](/_fern-img/ece601e1984a653eba13eb3157177e8aed5462da396a4075581b059889550913.webp) > Use the repeat task to copy a string a specified number of times and concatenate the copies into a new string.