Here is the code i have been using.
Code: Select all
on mouseUp
put the label of button "testChoice" of card "studentname" of stack "writing" into pItemName
if pitemName is "Choose Test Here" then
answer " Please Select a Test from this Drop Down Menu"
else
put the label of button "testChoice" into pItemName
end if
--Until here the code works fine and the variable pItemName is not empty, however although the field testsTakenServerFirst of card studentname of stack "writing" does contain that same text as pItemName, it does not evaluate to TRUE, and it will ALWAYS go to card beginnow
if pItemName is not among the lines of field "testsTakenServerFirst" of card "studentname" of stack "writing" then
go to card "beginnow"
else
answer "You have taken this test already, choose another one or logout"
end if
end mouseUp