Search for a specific text in a virable?

  • Автор темы Автор темы convict29
  • Дата начала Дата начала

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?
 
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
 
return project.Variables["article"].Value.Contains(project.Variables["keyword"].Value).ToString();
//returns "True" or "False"
 
Thanks both! Work both ways.:ay:
 

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