help with simple problem

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

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?
 
Код:
Развернуть Свернуть Копировать
if (instance.ActiveTab.DomText.IndexOf("search_text") == -1)
    throw new Exception();
 
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
 
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
Код:
Развернуть Свернуть Копировать
if (project.Variables["test"].Value.IndexOf("search_text") == -1)
    throw new Exception();
 
  • Спасибо
Реакции: bill

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