The stack has only 2 radio buttons grouped.
I check to make sure the target is one of the 2 buttons
I put the 2nd word of the name into a variable
I delete the superfluous characters
This is the code I'm using for this test -
Code: Select all
on mouseUp
if character 2 to 4 of word 2 of the target is "rdo" then
put word 2 of the target into tmpVar
delete character 2 to 4 of tmpVar
if tmpVar is "One" then answer "One"
if tmpVar is "Two" then answer "Two"
end if
end mouseUp

What am I missing?