assign and if