set group to choose from list {"Group A", "Group B", "Group C", "Group D", "Group E", "Group F"} with prompt "Please select the group letter you have been assigned:"
display dialog "You selected " & group & "."
if group is "Group A" then
display dialog "You chose group A."
set mode0 to "0"
set mode1 to "1"
set mode2 to "2"
else if group is "Group B" then
display dialog "You chose group B."
set mode0 to 0
set mode1 to 2
set mode2 to 1
else if group is "Group C" then
display dialog "You chose group C."
set mode0 to 1
set mode1 to 0
set mode2 to 2
else if group is "Group D" then
display dialog "You chose group D."
set mode0 to 1
set mode1 to 2
set mode2 to 0
else if group is "Group E" then
display dialog "You chose group E."
set mode0 to 2
set mode1 to 0
set mode2 to 1
else if group is "Group F" then
display dialog "You chose group F."
set mode0 to 2
set mode1 to 1
set mode2 to 0
else
set mode0 to -1
set mode1 to -1
set mode2 to -1
end if
display dialog "Mode0 is " & mode0 & ", and Mode1 is " & mode1 & ", and Mode2 is " & mode2
Anyone have any ideas? I'm a proficient programmer, and I feel pretty dumb being stumped on an if statement. But I'm new to Applescript, so maybe it's something I'm just not aware of.
Thanks!
Celine