started nested conditional in string procedure