Search for a specific text in a virable?

convict29

Пользователь
Регистрация
10.07.2014
Сообщения
114
Благодарностей
3
Баллы
18
Hi,
i have an article in the {-variable.article-}. Lets say that i want to find if the word "keyword" exist in this {-variable.article-}, and then IF exist do that ELSE that.

Is there any way to do it?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Text processing - Regex and put data to variable check for example
and then Logic - If after that
'{-Variable.check-}'!=''
If found then logic will be true = green exit
 

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
786
Баллы
113
return project.Variables["article"].Value.Contains(project.Variables["keyword"].Value).ToString();
//returns "True" or "False"
 

convict29

Пользователь
Регистрация
10.07.2014
Сообщения
114
Благодарностей
3
Баллы
18
Thanks both! Work both ways.:ay:
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)