tatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 18 days agoif statement == falsei.imgflip.comexternal-linkmessage-square40fedilinkarrow-up1245arrow-down118
arrow-up1227arrow-down1external-linkif statement == falsei.imgflip.comtatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 18 days agomessage-square40fedilink
minus-squarekbal@fedia.iolinkfedilinkarrow-up5arrow-down1·18 days ago if ( test == false ) x = 1 else x != 1
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up5arrow-down1·18 days agoNot sure what you’re trying to achieve with that else block, as it affects nothing.
minus-squarekbal@fedia.iolinkfedilinkarrow-up5·18 days agookay I fixed it if ( test == false ) x = 1 else assert( x != 1 )
if ( test == false ) x = 1 else x != 1
Not sure what you’re trying to achieve with that else block, as it affects nothing.
okay I fixed it
if ( test == false ) x = 1 else assert( x != 1 )