"answer" command code samples?
Posted: Wed Oct 21, 2009 4:04 am
Hi everyone,
I am very new to Revolution and am bashing my head against the wall with the "answer" command. The pseudo code that I want to have is as follows:
if (answer "Is this OK?" with "Yes" or "No") = "Yes" then
(do "Yes" code)
else
(do "No" code)
end if
I tried with variables, I tried all sorts of things. The documentation does not make it clear what happens here and I can't readily find any sample scripts written by others. How does answer give feedback on which button was pushed? And how can I use that in my IF statement?
Thanks for your help!
I am very new to Revolution and am bashing my head against the wall with the "answer" command. The pseudo code that I want to have is as follows:
if (answer "Is this OK?" with "Yes" or "No") = "Yes" then
(do "Yes" code)
else
(do "No" code)
end if
I tried with variables, I tried all sorts of things. The documentation does not make it clear what happens here and I can't readily find any sample scripts written by others. How does answer give feedback on which button was pushed? And how can I use that in my IF statement?
Thanks for your help!