看板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