Finding the nth character in a string/ variable

Hello, before I put in a feature request (or see if one has already put in) I am wondering if I am missing an obvious way to get the specific character from a string saved in a variable. For example in the pie I was working on, I wanted the person to insert a four digit number into a keypad, and I wanted to be able to reference which digit was placed in each position.

I thought it would be an easy assign the number to a variable, then code it to pull the information later. After failing on pulling that off, what I eventually did was detect the input each time a new digit was entered and use right() to pull out that last digit and store each position in its own variable. It worked, but seemed rather complicated in the end.

Anyway, if there is a better way, I’d love to hear it.


Thanks!