Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Question about Multiple Input Boxes Linked to 1 Submit button

$
0
0
I almost have this working but I know it's not exactly right. I have 2 input boxes setup that are asking 2 questions, linked to a single submit button. If the 2 questions are answered correctly it gives a Congratulations message and goes to the next page. This part is actually working as intended however if either of the answers are wrong it should pop up a message to that effect. Right now nothing pops up if either input is wrong, what correction do I need to make to my script please?

Script as it is now:
Code:
stAnsw = Input.GetText("Input1");
stAnsw2 = Input.GetText("Input2");
if stAnsw == "windsor" then
if stAnsw2 == "tanzania" then
Dialog.Message("Congratulations!", "Targets Located", MB_OK, MB_DEFBUTTON1);
Page.Jump("Page4");
else
Dialog.Message("Try Again", "Sorry, your Kung-Fu is Weak", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
end end

Viewing all articles
Browse latest Browse all 2105

Trending Articles