Fill field if another field or another field is true

I’m trying to get a field to fill if one field is Yes or another field is Yes.
So far I have this: if field(‘Previous Courier’) or field(‘Current Courier’) == ‘Yes’ then this else nil end
But that doesn’t seem to work as I’m still getting results when both Courier fields are No.