• 0 Posts
  • 39 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle
  • ninja@lemmy.worldtoScience Memes@mander.xyzif statement == false
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    2
    ·
    8 days 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.