ID:140955
 
Code:
        var/sex1 = winget(usr, "maleb", "is-checked")
var/sex2 = winget(usr, "femaleb", "is-checked")
if(sex1 == TRUE)
sex = "Male"
else if(sex2 == TRUE)
sex = "Female"
else alert("Error")

        if(winget(usr, "femaleb", "is-checked")==TRUE)
sex = "female"
else if(winget(usr, "maleb", "is-checked")==TRUE)
sex = "Male"
else alert("Error")


Problem description:
No matter which way I do it. it always alerts the error message. (else alert("Error") <--- This message).
The true/false values returned from winget() is in string format.

Thus, you must check for =="true" or =="false".

Also, why not use the built-in Gender variable? Free up some of that valuable variable space :P
In response to GhostAnime
OK, thanks a lot.