diff options
author | Haru <haru@dotalux.com> | 2019-09-23 00:08:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 00:08:42 +0200 |
commit | 52d8ea6406cfb261bb46113c513a8eec9a9daeb6 (patch) | |
tree | 9dc138202e3053b01a5a1eb5cb834d0395dc0f3f /doc | |
parent | 92f3ecdcb341b798c93d5c8b0320fb8cb85e759c (diff) | |
parent | 8cbc48254a95af53fb4be782f3aa6d0b8ae249c1 (diff) | |
download | hercules-52d8ea6406cfb261bb46113c513a8eec9a9daeb6.tar.gz hercules-52d8ea6406cfb261bb46113c513a8eec9a9daeb6.tar.bz2 hercules-52d8ea6406cfb261bb46113c513a8eec9a9daeb6.tar.xz hercules-52d8ea6406cfb261bb46113c513a8eec9a9daeb6.zip |
Merge pull request #2533 from skyleo/master
Fix two examples in scripting documentation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 4 |
1 files 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!"); } |