完整文档下载地址
/set-var x1 Hello #设置变量
/echo ${x1} #控制台打印出 Hello
${0} #数字0表示脚本文件
${1}# 表示第一个参数 以此类推2表示第二个参数
流程控制
if expression
...
elseif expression
...
else
...
end
Example:
if ${3}
/echo "Called with at least 3
arguments"
elseif ${2}
/echo "Called with two arguments"
elseif ${1}
/echo "Called with one argument"
else
/echo "Called without arguments"
end
while expression
...
end
Example:
/set-var x 3
while ${x}
/echo ${x}
/set-var x $(/expr ${x} - 1)
end
for varname words
...
end
Examp