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