• General_Effort@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    6 days ago

    In normal parlance, “if and only if” rules out that something could also happen as a result of other circumstances. EG, if you fall out of a plane, you will lose your glasses. But there are other conditions that would lead to the same result.

    In code, the alternative would be to have a different if statement that executes identical code. Or *cough* you could use a jump instruction to execute literally the same code.