tatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 1 year agoif statement == falsei.imgflip.comexternal-linkmessage-square39linkfedilinkarrow-up1253arrow-down117
arrow-up1236arrow-down1external-linkif statement == falsei.imgflip.comtatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 1 year agomessage-square39linkfedilink
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up6arrow-down1·1 year 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.