Repeat - 指令碼與圖表函數
Repeat() 會形成一個字串,包含的輸入字串重複第二個引數所定義的次數。
語法:
Repeat(text[, repeat_count])
傳回的資料類型: 字串
引數:
引數
text
|
原始字串。 |
repeat_count
|
定義字串 text 中要在輸出字串中重複的字元的次數。 |
Repeat( ' * ', rating ) when rating = 4 | Returns '****' |
T1: Load *, repeat(String,2) as Repeat; Load * inline [ String hello world! hOw aRe you? ];
Result
String | Repeat |
---|
hello world! | hello world!hello world! |
hOw aRe you? | hOw aRe you?hOw aRe you? |