ID:264494
 
Code:
mob/proc/GeninScoreCheck()
var/R = winget(src, "Genin_1.Q1b;Genin_1.Q2a;Genin_1.Q3c;Genin_2.Q14a;Genin_2.Q14b;Genin_2.Q14c","is-checked")
var/Result=params2list(R)
var/C=0
if(Result["Genin_1.Q1b.is-checked"]) C++
if(Result["Genin_1.Q2a.is-checked"]) C++
//outputs "2" no matter what.


Problem description:
I'm guessing result[] doesn't = true or false or something?

I believe winget would be returning "true" or "false" strings, which are both TRUE.

if(Result["Genin_1.Q1b.is-checked"] == "true") C++


should fix it
In response to Crashed
I hate that you're right.
Much appreciated mate