Foreach token
From EventScripts Community Encyclopedia
|
OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: {{{x}}} DescriptionRuns a command on every token part of a string you provide. It stores the token in variable. You can also use it with an es before it. Note: It doesn't expand server variables!
Parameters
Examples// display all alphabetical letters es_xsetinfo temptoken 0 foreach token temptoken "a-s-d-f-g-h-j-k-l-m-n-o-p-q-r-s-t-u-v-w-x-y-z" "-" "es_msg server_var(temptoken) is a part of the token." // example with es es_xsetinfo tempstring "1-6-3-9-2" es_xsetinfo tempcmd "es_tell server_var(temptoken) Hello, you are listened in a string." es foreach token temptoken server_var(tempstring) "-" server_var(tempcmd)
Notes
See also
External linksforeach {{{category}}} |
