How to code for gender preference

I believe this may help:

3 Likes