Hey,
def var loadInteger(...); makes "var" an integer, which you can do (var > 0) (var < 10) etc.
Quote:
I think this part is what I keep getting stuck on however, wouldn't a save and load of ("theProgram.s_gender", s_gender) simply call the selected text "Male", "Female" or "Sissy". How does it then know which you have selected to load the relevant script.
def s_gender = getSelectedValue("What is yo...") is returning an Integer, not "Male" or "Female" or "Sissy".
Quote:
How does it then know which you have selected to load the relevant script.
-- You would do if your loaded variable is == 0 then Male, == 1 then Female and so on.
You could always make an array. Depends which way you really want to do it.
Code:
def genderArr = ["Male", "Female", "Sissy", "?", "?", "?"];
def s_gender = getSelectedValue("What is your gender?", genderArr);
....
if (genderArr[s_gender] == "Male") { }
if (genderArr[s_gender] == "Female") { }
Save the s_gender to the "theProgram.s_gender" key, then later call loadInteger("theProgram.s_gender") and do the above check against the array.
In a rush, so could be an error above. Let me know if you need any more help.