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.
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.