CheckContainsText » 历史记录 » 版本 1
machenhe, 2022-04-25 15:29
| 1 | 1 | machenhe | _*%{color:green}checkContainsText%*_ |
|---|---|---|---|
| 2 | 比较前一字符串是否包含后一字符串 |
||
| 3 | |||
| 4 | |||
| 5 | 标签:命令定义|checkContainsText |
||
| 6 | |||
| 7 | *格式* |
||
| 8 | |命令名 |参数1 |参数2 | |
||
| 9 | |checkContainsText |比较的字符串1 |比较的字符串2 | |
||
| 10 | |||
| 11 | *说明* |
||
| 12 | * 参数1: 比较的字符串1 |
||
| 13 | |||
| 14 | * 参数2: 比较的字符串2 |
||
| 15 | |||
| 16 | - |
||
| 17 | - |
||
| 18 | |||
| 19 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 20 | |||
| 21 | bq. [@main] |
||
| 22 | #if |
||
| 23 | #act |
||
| 24 | mov s1 <notextile>www.top166.com</notextile> |
||
| 25 | mov s2 top166.com |
||
| 26 | |
||
| 27 | #if |
||
| 28 | *%{color:green}checkContainsText%* s1 s2 |
||
| 29 | #act |
||
| 30 | sendMsg 6 前一字符串包含后一字符串 |
||
| 31 | #elseAct |
||
| 32 | sendMsg 6 前一字符串不包含后一字符串 |