$repeat()

DESCRIPTION
    returns a string repeated a specified number of times
SYNOPSIS
    $repeat(s,i)
ARGUMENTS
    s - a quoted string, or string expression
    i - an integer, or integer expression, greater than or equal to zero
EXAMPLES
# pikt +C 'output $repeat("#",10)'
##########
# pikt +C 'output $repeat("oh ",5)'
oh oh oh oh oh
# pikt +C 'output $repeat($space() . "oh" . $space() . $left("not on your life",2), 1+2)'
 oh no oh no oh no
SEE ALSO
    String Functions
    Numerical Functions
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
Learn about
the Pikt script
begin, end &
rule sections