Easy $10 - Teach me how to do if statement in javascript

Status
Not open for further replies.

Masterptc

Regular Member
Joined
Aug 9, 2011
Messages
421
Reaction score
603
Im coding a imacros in javascript, im stuck trying to figure out how to get the if statement to work so i can click a button only if its connected to certain text. And also i need it to ignore some text aswell. Earn an easy $10 just teach me how to do it, i have skype.
I'll pay with paypal i can also pay half with BTC if you want.
 
Professor Google gave me this advice.

http://www.w3schools.com/js/js_if_else.asp

Sky pe : John_ripper5150


String certainText;
if(certainText.Equals("banana")
{
}
or
if(certainText == "banana")
{
}

if you want multiple conditions use &&
if(certainText == "banana" && certainText2 == "apple")
{
}

You can also use ! to get the opposite result.
if(certainText != "banana") // the code only runs if it does not equal banana.
{
}
or you can do this.
if(!certainText.equals("banana")) //this code also only runs if the text does not equal //banana.
{
}

I gotta go cut my grass. Add me on skype if you decide you want to pay me or if you need more help.
 
Last edited:
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top