Winter_Walk wrote:
is that the correct syntax for the loop?
Yes. It can be shortened though:
if (!ConfirmAction(decision))
This is the same as saying "If ConfirmAction(decision) is NOT true".
Winter_Walk wrote:
is ConfirmAction a var or a command?
In this case, ConfirmAction is a method (command, as you say), which either returns true or false depending on the argument you pass to it.
You can't pass arguments (in this case "decision") to a variable.