June 14, 20205 yr 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, 20205 yr by Jueix
June 14, 20205 yr Need double = on the if statements or just if(restockmode) and an else Edited June 14, 20205 yr by D9BLADEE
June 14, 20205 yr Author 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.
Create an account or sign in to comment