Ruby playground
def false.! false end p bool = false p [bool, ! bool] p( if bool :true elsif ! bool :false else :unreachable end )