1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Hire a Freelancer' started by Masterptc, Sep 30, 2014.

  1. Masterptc

    Masterptc Regular Member

    Joined:
    Aug 9, 2011
    Messages:
    413
    Likes Received:
    600
    Home Page:
    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.
     
    • Thanks Thanks x 1
  2. JohnRipper

    JohnRipper Registered Member

    Joined:
    Nov 11, 2012
    Messages:
    74
    Likes Received:
    20
    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.
     
    • Thanks Thanks x 1
    Last edited: Sep 30, 2014
  3. JohnRipper

    JohnRipper Registered Member

    Joined:
    Nov 11, 2012
    Messages:
    74
    Likes Received:
    20
    Helped him with his code and got paid $17.
    Good deal.
     
    • Thanks Thanks x 1
  4. Masterptc

    Masterptc Regular Member

    Joined:
    Aug 9, 2011
    Messages:
    413
    Likes Received:
    600
    Home Page:
    Awesome javascript coder. Highly Recommended!