Your issue is that filteredSampling.fmagnet_y < 0.0 && filteredSampling.fmagnet_y > 0.0
will never return true, as a number cannot be both positive and negative.
Based on your print statement, I assume you meant the last part to be filteredSampling.fmagnet_z > 0.0
(note the z instead of the y).