help with simple problem

bill

Client
Регистрация
05.07.2014
Сообщения
355
Благодарностей
9
Баллы
18
say i have a variable and i want to check whether the resulting text from the variable is a certain word or not and either proceed with the job or not... how would i do this?
 

amyboose

Client
Регистрация
21.04.2016
Сообщения
2 312
Благодарностей
1 191
Баллы
113
Код:
if (instance.ActiveTab.DomText.IndexOf("search_text") == -1)
    throw new Exception();
 

bill

Client
Регистрация
05.07.2014
Сообщения
355
Благодарностей
9
Баллы
18
I don't think this is what I'm looking for, because the search text is not in DomText of the tab, it's in a variable
 

amyboose

Client
Регистрация
21.04.2016
Сообщения
2 312
Благодарностей
1 191
Баллы
113
  • Спасибо
Реакции: bill

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