-----------------------------
Hi,
I've done much searching on this forum and in the Rev dictionary to no avail.
I'd be very glad if someone could point me in the right direction for solving two little problems.
First: how to disable keyboard entry for an entire card/stack OR how to ignore certain keys if they are pressed after an answer dialog comes up. Here's a script excerpt:
Code: Select all
answer "Press a button to continue:" with "Quit" and "Proceed to next pair"
if it is "Quit" then
exit repeat
end if
Secondly - in the script above you can see I wrote "Quit" before the other option - yet on the program, when the dialog box actually pops up, the buttons are the other way around. It's not really a problem, I'm just curious why this happens.
But related to that, I have another script excerpt which utilises an if statement within an if statement, I'd be interested to know if this is taboo or if there is a better/more efficient way of achieving the same thing.
Code: Select all
answer "Which face is more familiar?" with "Right face" and "Left face"
if (it is "Right face" AND gCase is pRIGHT) OR (it is "Left face" AND gCase is pLEFT)
then
put "IDENTIFIED" after gData
else
if (gCase is pDIFF) OR (gCase is pNONE)
then
put "-" after gData
else
put "NOT IDENTIFIED" after gData
end if
end if