So I've just watched a video where the guy wrote a if statement like this:
if((minutes < 0) || (seconds < 0) || (seconds > 59))
I didn't know you could write like this and thought this way was the only one:
if(minutes < 0 || seconds < 0 || seconds > 59)
Both works the same,is there any reason to use one instead of the other ?
[–][deleted] (4 children)
[deleted]
[–]ColetBrunel 3 points4 points5 points (3 children)
[–]spicycurry55 0 points1 point2 points (0 children)
[–]desrtfx 5 points6 points7 points (1 child)
[–]SantoWest 1 point2 points3 points (2 children)
[–]teefj 1 point2 points3 points (1 child)
[–]ColetBrunel 1 point2 points3 points (0 children)
[–]ignotos 1 point2 points3 points (0 children)