Used condition but tested and working correctly.