3 ms·
The point is that "if" branches based on a boolean value. A comparison is just one way to produce a boolean value. There's nothing explicit by adding "==true".
by coin 6y ago
The point is that "if" branches based on a boolean value. A comparison is just one way to produce a boolean value. There's nothing explicit by adding "==true". It just show a lack of understanding of "if".
- gnusty_gnurc 6y agoPrecisely. Thank you.
- xorcist 6y agoIf an extra "== true" can be considered more precise, would if ((conditional == true) == true) be even more precise?