From 8cbc48254a95af53fb4be782f3aa6d0b8ae249c1 Mon Sep 17 00:00:00 2001 From: skyleo Date: Tue, 10 Sep 2019 19:16:46 +0200 Subject: Fix two examples in scripting documentation --- doc/script_commands.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index d14393a8a..c603fda44 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -2208,11 +2208,11 @@ Multiple statements can be grouped with { }, curly braces, just like with the 'if' statement. Example 1: - while (switch(select("Yes", "No") == 2)) + while (select("Yes", "No") == 2) mes("You picked no."); Example 2: multiple statements - while (switch(select("Yes", "No") == 2 )) { + while (select("Yes", "No") == 2) { mes("Why did you pick no?"); mes("You should pick yes instead!"); } -- cgit v1.2.3-70-g09d2