Skip to main content
Inspiring
August 5, 2013
Answered

check if a word/words/phrase exists in document

  • August 5, 2013
  • 1 reply
  • 1058 views

hello,

how would I go about to check if a textframe with specific content exists in a document and if it does then procede with a function?

if ("word" exists) { make a new layer}

I just need it to check if one instance of the word exist

thank you

This topic has been closed for replies.
Correct answer CarlosCanto

you need check each textFrame individually for such word, loop thru all frames and stop when you find it

1 reply

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
August 5, 2013

you need check each textFrame individually for such word, loop thru all frames and stop when you find it

mec_osAuthor
Inspiring
August 5, 2013

thank you carlos☺