Assigning logical names on conditions