# Repeat - kod ve grafik fonksiyonu

Repeat(), girdi dizesinin ikinci bağımsız değişkenin tanımladığı tekrar sayısı kadar yinelenmesinden oluşan bir dize oluşturur.

Söz Dizimi:

Repeat(text[, repeat\_count])

Dönüş verileri türü: dize

Bağımsız Değişkenler:

Bağımsız Değişkenler

| Bağımsız Değişken | Açıklama |
| --- | --- |
| text | Orijinal dize. |
| repeat\_count | text dizesindeki karakterlerin çıkış dizesinde kaç kez yineleneceğini tanımlar. |

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

#### Örnek: Grafik ifadesi

| Örnek | Sonuç |
| --- | --- |
| `Repeat( ' * ', rating )` when rating = 4 | '\*\*\*\*' döndürür |

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

#### Örnek: Komut dosyası

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

Sonuç

| Dize | Yinele |
| --- | --- |
| hello world! | hello world!hello world! |
| hOw aRe you? | hOw aRe you?hOw aRe you? |