Heya. Got some free time and wanted to make a simple script and there are a few stuff that i'm confused about.

Cant find any function in the help file about itterating a text string.
Lets say that we have " Today i went to the USA. It was awesome .."

And that i want to save the words "It was awesome" to a temp variable.

How do I itterate the text ?

Tried to assign a var %i =1 and then have a while loop that checks if $%i == It but that fails because of " $%i " as it doesn't refer to the word 1. There must be a way to do this similarly instead of having line and lines with code if $1 == It then... if $2 == It then.. etc


So.. what I want to do is search the text until it encounters "It" and then save "It" and the 2 following words to a temp variable so that I can get "It was awesome".

Thanks for any help !