看板mud
标 题Re: 请问关於触发
发信站HiNetNews (Sun Apr 10 14:27:38 2005)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.glorb.com!newsgate.cuhk.edu.hk!
"我爱一条柴" <
[email protected]> 在邮件
news:
[email protected] 中撰写...
> 嗯 多谢回应...
>
> 还有一个问题...
> 如果:
> 变数 数值
> a %1
> b %2
> c %3
>
> 我只会用say a=%1 b=%2 c=%3
> 但有辨法用zmud来排序这些变数的由大到小而且say出来吗?
在Zmud的help中有
#sort
Syntax: %sort(list[,dir])
returns the list with items sorted in alphabetical order. If Dir is missing
or zero, list is sorted in ascending order. If Dir is non-zero, list is
sorted in descending order.
Examples:
#VAR slist {123|ab|45|008|789|ABC|ab cd|def|9}
#SHOW %sort(@slist)
displays:
008|123|45|789|9|ab|ab cd|ABC|def
还可以升降幂
#SHOW %sort(@slist,1)
displays:
def|ABC|ab cd|ab|9|789|45|123|008