If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

With your if statement grouping, you are missing an extra parenthesis for each pairing which breaks that if statement.
Also the comparison of the gen variable needs to use the == comparison operater (just a single = sets a variable, 2 or 3 = signs will compare).
And the male and female comparison strings much be enclosed in some form of a quote.
It also would be proper practice to use semi-colons at the end of each proper line of code: