Page 1 of 1
condition search text
Posted: 21 Nov 2015 09:56
by holymoz
hi, how can I make a condition that search the presence of specified text in a .txt file? thanks
Re: condition search text
Posted: 22 Nov 2015 19:04
by Martin
Hi,
You can use an action Init Variable Text File and then use a condition Expression to check if the text contains the word:
-action Init Variable Text File: file1.txt to file_text
-condition Expression: contains(file_text, "TheWord")
-->true: -some actions
Regards,
Martin
Re: condition search text
Posted: 23 Nov 2015 07:28
by holymoz
Martin wrote:Hi,
You can use an action Init Variable Text File and then use a condition Expression to check if the text contains the word:
-action Init Variable Text File: file1.txt to file_text
-condition Expression: contains(file_text, "TheWord")
-->true: -some actions
Regards,
Martin
thanks! you're great

Re: condition search text
Posted: 23 Nov 2015 10:39
by holymoz
opened new thread