• GTG3000@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    and then you have lua

    local result = condition and a or b
    

    I’m not complaining, although it gets a little confusing when one of the results is falsey. Which is a rarity since only false and nil are falsey in lua.