4 ms·
That's weird, I would thought that if(value) was the equivalent of if(value == true). Learned something today!
by paulintrognon 8y ago
That's weird, I would thought that if(value) was the equivalent of if(value == true). Learned something today!
- pythonaut_16 8y agoYou can force cast a boolean by doing if(!!value == true) {}, but at that point you might as well just say if(value)