I have words like aa26368
How can i split them character by character then evaluate them as an individual? Also what is the identifier i can use to evaluate how many characters there is in a word?
gerkes wrote:I have words like aa26368
How can i split them character by character then evaluate them as an individual? Also what is the identifier i can use to evaluate how many characters there is in a word?
Code: Select all
foreach letter [split $word ""] {
.. do what you want with the letter ($letter) here ..
}
string lengthgerkes wrote:Also what is the identifier i can use to evaluate how many characters there is in a word?