Project

Profile

Help

CommandStacking » History » Sprint/Milestone 2

Vincent Le Goff, 12/05/2018 07:59 PM

1 2 Vincent Le Goff
h2. Command stacking
2
3
4
5
Command stacking is a feature that allows users to send multiple commands at once.  For instance:
6
7
8
9
<pre>
10
11
say sounds;say good
12
13
</pre>
14
15
16
17
This syntax is equivalent to writing:
18
19
20
21
<pre>
22
23
say sounds
24
25
say good
26
27
</pre>
28
29
30
31
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.
32
33
34
35
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:
36
37
38
39
<pre>
40
41
say one command;say another command with a wink emoticon ;;)
42
43
</pre>
44
45
46
47
This command is equivalent to writing:
48
49
50
51
<pre>
52
53
say one command
54
55
say another command with a wink emoticon ;)
56
57
</pre>
58
59
60
61
Once the delimiter is present more than one time, it is not used as delimiter in the command stacking.  Therefore:
62
63
64
65
| Command | Equivalent |
66
67
| @say ;;)@ | @say ;)@ |
68
69
| @say ;;;)@ | @say ;;)@ |
70
71
| @say ;;;;)@ | @say ;;;)@ |