Array in » 历史记录 » 版本 2
tejie, 2026-05-14 21:21
| 1 | 1 | yangdefeng | h4. _*%{color:green}array_in%*_ |
|---|---|---|---|
| 2 | |||
| 3 | 检测以"|"分隔的字符串,分隔后的单元列表中,是否包含指定字符串 |
||
| 4 | |||
| 5 | 2 | tejie | 标签:命令定义^array_in |
| 6 | 1 | yangdefeng | |
| 7 | *格式* |
||
| 8 | |命令名 |参数1 |参数2 | |
||
| 9 | |array_in|待检测字符串|待检测值| |
||
| 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 | #act |
||
| 25 | [[mov]] [[基础变量|s0]] 22|abc|24|5 |
||
| 26 | |
||
| 27 | #if |
||
| 28 | *{color:green}array_in* [[<$str()>|<$str(s0)>]] 2 |
||
| 29 | #act |
||
| 30 | %{color:lightGrey};--print命令在控制台输出% |
||
| 31 | print 单元组中不包含2 |
||
| 32 | #elseAct |
||
| 33 | print 单元组中包含2 |