Comment on if statement == false

<- View Parent
ninja@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

Translating structured logic into spoken language is iffy. (I’m sorry. I couldn’t help myself)

The code reads to match OP if stated as: “If and only if the value of ‘a’ equals 1 then set the value of ‘b’ to equal one.” Placing the conditional at the beginning of the sentence maintains the correct dependency.

source
Sort:hotnewtop