How to use string.find?

Hello, could someone give me an example of how to use string.find :pray:

cant understand…

string.find("Hello this is a message", "message")
should return 17, then 23 (ā€˜message’ starts at the 17th character, and ends at the 23rd)

I more use it just to see if a word is in a string first though, such as:

if string.find("Somebody once told me", "once") then

2 Likes

Thank you very much it was very helpful! :smiley: