summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorskyleo <skyleo@skyleo.de>2019-09-10 19:16:46 +0200
committerskyleo <skyleo@skyleo.de>2019-09-10 19:16:46 +0200
commit8cbc48254a95af53fb4be782f3aa6d0b8ae249c1 (patch)
tree5ee0dca68622231a9de3b5048d243e2d90104d06 /doc/script_commands.txt
parent6dbabae7003990369d1c9ce965c3c4409c879499 (diff)
downloadhercules-8cbc48254a95af53fb4be782f3aa6d0b8ae249c1.tar.gz
hercules-8cbc48254a95af53fb4be782f3aa6d0b8ae249c1.tar.bz2
hercules-8cbc48254a95af53fb4be782f3aa6d0b8ae249c1.tar.xz
hercules-8cbc48254a95af53fb4be782f3aa6d0b8ae249c1.zip
Fix two examples in scripting documentation
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt4
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!");
}