Search for text in string

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

iclosem

Client
Регистрация
24.07.2012
Сообщения
5
Реакции
0
Баллы
0
I want to know if you can search for text in a string.

For example:
Let's say I have Variable1 with the value "Blue widget"
I want to see if Variable1 contains the term "widget." If so I perform one task, if not, I perform another.
If there is no function I'd like to see if you have any other tutorials on using javascript with zennoposter like how to pass in variables and return variables. If I know how I'm sure I can pass in variable1 and then use variable1.indexof("widget") no?

Any help would be appreciated.
 
I want to know if you can search for text in a string.

For example:
Let's say I have Variable1 with the value "Blue widget"
I want to see if Variable1 contains the term "widget." If so I perform one task, if not, I perform another.
If there is no function I'd like to see if you have any other tutorials on using javascript with zennoposter like how to pass in variables and return variables. If I know how I'm sure I can pass in variable1 and then use variable1.indexof("widget") no?

Any help would be appreciated.

Here you are.

Capture.PNG
 
  • Спасибо
Реакции: synapsol
I just figured it out on my own and then I saw this. Thank you very much though!
 
Lol @ Indy's drawing. Good job bro, lol.
 

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