Custom Expression; labels in scatter plot

I have a scatter plot and would like to only show labels for a sub set of data - I can accomplish this by selecting, but it is a very large dataset, so I'd like to do it automatically somehow.

The labels I want to show are in column 1; the condition for whether labels should be shown are in column 2 (YES or NO values).

I played around with custom expressions, but couldn't figure it out.

I was considering some sort of IF function.

Something like: IF column two has the value YES; show the label from column 1, otherwise show nothing.

Can anyone help me figure out the correct syntax?

(2) Answers