Jump to content

always returning false


Recommended Posts

Posted (edited)
private void checkBox1ActionPerformed(ActionEvent e) {
    if(Mulemode = false) {
        ctx.log("Script setup: Mulemode activated!");
        Mulemode = true;
    }
    else if(Mulemode = true) {
        ctx.log("Script setup: Mulemode deactivated!");
        Mulemode = false;
    }
    return Mulemode;
}

private void checkBox2ActionPerformed(ActionEvent e) {
    if(Restockmode = false) {
        ctx.log("Script setup: Mulemode activated!");
        Restockmode = true;
    }
    else if(Restockmode = true) {
        ctx.log("Script setup: Mulemode deactivated!");
        Restockmode = false;
    }
    return Restockmode;
}

It always seems to return false even if I add the return Restockmode; ETC under the if statements? Ignore the void's for now was testing with out having it as a boolean. 

Edited by Jueix

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...