setting up conditions with expressions