Cross observational "if clause"

Reverse engineering a question is hard. Can you provide a reprex. See the FAQ?