I think I answered your question already.
The conditional logic needs to be based on the field before the current field not being empty.
Field 1 if this field is not empty hide this field
Field 2 - if field 1 is empty hide this field if this field is not empty hide this field
If you repeat this logic it should work. But this example has not been tested.
You may need to figure out the logic for this to work but you can accomplish what you’re needing with logic.