if(!x)
if (xn’t)
if (x){} else { DO_STUFF() }
I’ve done this.
Mainly when there are a lot of conditionals in a row (not nested, just one after another) and if the first five are all if (a..e)
then I don’t want the sixth to be if (!f)
and throw that curveball, I’d rather just if(f){//do nothing}else{//dostuff()}