I now realize that you want to suppress the whole line of data instead of a LINE. That would be more difficult.
Basically, you may link all fields in the line with a conditional formula F_300 == F_301.
Here F_300 is your UDF and F_301 = 'N'. The formula should be in another field say F_302.