I am no expert, and can’t provide a concrete answer without seeing the full code, but it seems like the code skips the
Part. The two ifs don’t show because gender value is still “”. Perhaps checking the control flow will help? Just make sure that the gender variable can only take either “male” or “female” after the fake choice.
It is usually recommended that you use if else to check conditions if you only need one of them to check true. Otherwise, the code is more prone to errors.
From what you are checking there, it seems it’ll be better, cause if gender is not “female” and there are only two options as you shown, you don’t need to check for the second one.
You could also use a variable true/false or 0/1 instead of a string “female”/“male”
I think it makes the checking easier and you can also use the same variable to do multireplace.
*set gender 0
*comment *set gender false
*if gender
this will be shown if gender is 1 or true
*else
this will be shown if the gender is 0 or false
*set gender 1
*comment use gender values 1 and 2 if you are going to use multireplace. the value 0 doesn't work for this.
@{gender this will be shown if the gender is 1|this will be shown if the gender is 2}
But you can use whatever it’s easier for you though, as long as it works.
Note that for minor variations you can use multireplace, like this: @{(gender = "female") this text will show if mc is a woman|and this will show otherwise}