+ foreach and if with string expression