When I was reading the interface3.pdf
or the source3.pdf
about the key-value part, I got confused when I saw <key>.choice:
and <key>.multichoice:
.
The explanations and examples of these two command are very similar and from the information given, I thought <key>.choice:
can do the job of <key>.multichoice:
, so what is the "extraordinary" function of <key>.multichoice:
?
Best Answer
The difference is that
.choice:
is a key which accepts exactly one value, whereas.multichoice:
means a key can be multi-valued. So if a user givesa
.choice:
key will be set only tob
, whereas a.multichoice:
key is set toa,b
. More typically, a user might givewhich would (almost certainly) be an error for a
.choice:
key but which would apply botha
andb
for.multichoice:
.