Array » 历史记录 » 版本 2
tejie, 2026-06-02 21:25
| 1 | 1 | yangdefeng | h4. _*%{color:green}array%*_ |
|---|---|---|---|
| 2 | |||
| 3 | 遍历以"|"分隔的字符串 |
||
| 4 | |||
| 5 | 2 | tejie | 标签:命令定义^array |
| 6 | 1 | yangdefeng | |
| 7 | *格式* |
||
| 8 | |命令名|参数1 |参数2 | |
||
| 9 | |array |待遍历的字符串|遍历返回值| |
||
| 10 | |||
| 11 | *说明* |
||
| 12 | 2 | tejie | |参数1|待遍历的字符串,以<notextile>“|”</notextile>分隔| |
| 13 | |参数2|遍历返回值| |
||
| 14 | 1 | yangdefeng | |
| 15 | - |
||
| 16 | - |
||
| 17 | |||
| 18 | h4. _*%{color:deepSkyBlue}特戒引擎脚本示例%*_ |
||
| 19 | |||
| 20 | - |
||
| 21 | - |
||
| 22 | |||
| 23 | bq. [@main] |
||
| 24 | *{color:green}#if array* 2|abc|23|5 s0 |
||
| 25 | #act |
||
| 26 | %{color:lightGrey};--print命令在控制台输出4次不同的s0(遍历)% |
||
| 27 | print s0 |