Jump to content

always returning false


Jueix

Recommended Posts

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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