• 0 Posts
  • 92 Comments
Joined 2 年前
cake
Cake day: 2023年6月13日

help-circle










  • ninja@lemmy.worldtoScience Memes@mander.xyzif statement == false
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    2
    ·
    2 个月前

    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.