Bones Outlander Posted November 16, 2022 Share Posted November 16, 2022 (edited) I'm trying to work out the best way of generating a string of a variable length of a single characters (let's say an *). So basically I want to pass a variable into a function and that function returns a string of that number of characters . So if i passed in 10 my string would be "**********" In some languages str="*" * 8 would return "********", but not LSL. Is the only way to loop around adding one character each time, or is there a more efficient way of dong this? Thanks Edited November 16, 2022 by Bones Outlander Link to comment Share on other sites More sharing options...
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now