condition search text

Post your questions and help other users.

Moderator: Martin

Post Reply
holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

condition search text

Post by holymoz » 21 Nov 2015 09:56

hi, how can I make a condition that search the presence of specified text in a .txt file? thanks

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: condition search text

Post by Martin » 22 Nov 2015 19:04

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

holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

Re: condition search text

Post by holymoz » 23 Nov 2015 07:28

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 :D

holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

Re: condition search text

Post by holymoz » 23 Nov 2015 10:39

opened new thread

Post Reply