Jueix Posted June 14, 2020 Share Posted June 14, 2020 (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 June 14, 2020 by Jueix Quote Link to comment Share on other sites More sharing options...
D9BLADEE Posted June 14, 2020 Share Posted June 14, 2020 (edited) Need double = on the if statements or just if(restockmode) and an else Edited June 14, 2020 by D9BLADEE 1 Quote Link to comment Share on other sites More sharing options...
Jueix Posted June 14, 2020 Author Share Posted June 14, 2020 4 minutes ago, D9BLADEE said: Need double = on the if statements or just if(!restockmode) and if(restockmode) My god I am dumb didn't even notice i didn't use double = lol. 2 Quote Link to comment Share on other sites More sharing options...