Talk:InputBox
From kwiki
The syntax of the example given in the 'Description' section is faulty: the braces (curly brackets) that should surround the if...else.... actions are MISSING.
Thanks, but it's OK, just like in c++ or php when there is only one action - curly brackets are not needed, they are necessary when you want to do more that one action after if or else e.g.:
var $s=InputBox("Enter your name");
if(GetLastAdditionalResult()==IDCANCEL){
MessageBox("You pressed cancel...");//one action
MessageBox("Again - you pressed cancel...");//second action if cancel pressed - so brackets are needed
} else MessageBox("Hello "+$s+"!");
