tatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 23 days agoif statement == falsei.imgflip.comimagemessage-square35fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageif statement == falsei.imgflip.comtatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 23 days agomessage-square35fedilink
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up0·23 days 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
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.