How to Parse a String?
-
How would I go about reading a string one character at a time? I can't find a command like midstr (that lets you find out what text is in a certain position). I only see commands for finding specific text.
-
you can treat a string like an array, or you can grab individual parts with colon notation
name = "Mike" print (name[0]) // this prints M print (name[1:]) // this prints ike print (name[:2]) // this prints Mik
-
Cool, thank you!