Eyeon:Script/Reference/Libraries/string/rep

From VFXPedia

Jump to: navigation, search

Contents

String : string.rep

Arguments

string.rep( s, n )

  • s (required, string)

A string value.

  • n (required, numeric)

The number of times to repeat string 's'

Returns

A new string containing the string 's' repeated 'n' number of times.

Remarks

The string.rep function is used to repeat the provided string by the number of times specified.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

-- print hello three times i = string.rep( "hello", 3 ) print( i )


Tips for rep (edit)

EyeonTips:Script/Reference/Libraries/string/rep