# Repeat - 스크립트 및 차트 함수

Repeat()는 두 번째 인수로 정의된 횟수 만큼 반복된 입력 문자열로 구성된 문자열을 만듭니다.

구문:

Repeat(text[, repeat\_count])

반환 데이터 유형: 문자열

인수:

인수

| 인수 | 설명 |
| --- | --- |
| text | 원래 문자열입니다. |
| repeat\_count | 문자열 text의 문자가 출력 문자열에서 반복되는 횟수를 정의합니다. |

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Repeat.htm)

#### 예: 차트 표현식

| 예 | 결과 |
| --- | --- |
| `Repeat( ' * ', rating )` when rating = 4 | '\*\*\*\*'를 반환합니다. |

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Repeat.htm)

#### 예: 로드 스크립트

```
T1:
Load *,
repeat(String,2) as Repeat;
Load * inline [
String
hello world!
hOw aRe you? ]; 
```

결과

| 문자열 | 반복 |
| --- | --- |
| hello world! | hello world!hello world! |
| hOw aRe you? | hOw aRe you?hOw aRe you? |