Inserting text only after a cirtain line

So, i was wondering, i’ve already got a menu with a button in it, and i know how to make that button do things, but how can i make it so, upon clicking this button it inserts text into a text box, however, it ONLY inserts it underneath a certain sentance?

e.g.

Hello i am bob
>>Inserted Here

And if that sentance doesn’t exist, it’ll give you an error message.

submitted by /u/RealQuackle
[link] [comments]

Leave a Reply