Site Tools


repeat_function
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


repeat_function [2015/06/04 22:19] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +======Synopsis:======
 +$__repeat__(<count> <text>)
 +
 +  * This function returns <count> instances of <text> joined without a separator.
 +  * <count> must be >= 1
 +  * The return string is truncated to 1MB to avoid shooting yourself in the foot.
 +  * The <text> must NOT be surrounded by double quotes.  If you need to repeat the space, use $__repeat__(<count><space><space>)
 +
 +======Returns:======
 +input string repeated count times
 +
 +======Examples:======
 +<file>
 +$repeat(5 hello)                   returns "hellohellohellohellohello"
 +$repeat(5  )                       returns "     "  (spaces)
 +</file>
 +
  
repeat_function.txt · Last modified: 2015/06/04 22:19 by 127.0.0.1