ForString
not ratedWorks kind of like ForGroup or ForForce. Runs the code callback for each part of the string. Use the function GetEnumString() to refer to the currently picked string-chunk. The size of each part of the string is determined by chunkSize.
skipIncomplete determines wether to include the last part of the string, if that is not long enough to satisfy chunkSize.
For example:
ForString("The Jass Vault!", 2,
skipIncomplete determines wether to include the last part of the string, if that is not long enough to satisfy chunkSize.
For example:
ForString("The Jass Vault!", 2,
, false) will run
8 times, where GetEnumString() will return respectively:
"Th", "e ", "Ja", "ss", " V", "au", "lt", "!"
If true were passed as the last argument, the "!" would have been skipped, and it would only have executed 7 times.