Project

Profile

Help

CommandStacking » History » Sprint/Milestone 2

Vincent Le Goff, 11/06/2016 10:21 PM

1 2 Vincent Le Goff
h2. Command stacking
2 1 Vincent Le Goff
3
Command stacking is a feature that allows users to send multiple commands at once.  For instance:
4
5
<pre>
6
say sounds;say good
7
</pre>
8
9
This syntax is equivalent to writing:
10
11
<pre>
12
say sounds
13
say good
14
</pre>
15
16
Sending multiple commands at once can be useful in some situations.  By default, the character for command stacking is the semicolon (;), but it can be changed in the preferences, input tab.  If you wish to remove command stacking, simply remove the character in the setting.
17
18
You can double the command stacking character to actually send one.  If you have set the semicolon (;) as a delimiter for command stacking (the default), you can type:
19
20
<pre>
21
say one command;say another command with a wink emoticon ;;)
22
</pre>
23
24
This command is equivalent to writing:
25
26
<pre>
27
say one command
28
say another command with a wink emoticon ;)
29
</pre>
30
31
Once the delimiter is present more than one time, it is not used as delimiter in the command stacking.  Therefore:
32
33
| Command | Equivalent |
34
| @say ;;)@ | @say ;)@ |
35
| @say ;;;)@ | @say ;;)@ |
36
| @say ;;;;)@ | @say ;;;)@ |