tatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 2 years agoif statement == falsei.imgflip.comimagemessage-square14linkfedilinkarrow-up1213arrow-down115
arrow-up1198arrow-down1imageif statement == falsei.imgflip.comtatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 2 years agomessage-square14linkfedilink
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up4arrow-down1·2 years agoAn if statement with one condition is an if and only if statement. The moment you add a second (or more) condition (regardless of && or ||), then it’s no longer if and only if.
An
ifstatement with one condition is an if and only if statement. The moment you add a second (or more) condition (regardless of&&or||), then it’s no longer if and only if.