CompareText » 历史记录 » 版本 1
machenhe, 2022-04-25 15:28
1 | 1 | machenhe | _*%{color:green}compareText%*_ |
---|---|---|---|
2 | 用新字符串替换指定字符串中的旧字符串 |
||
3 | |||
4 | |||
5 | 标签:命令定义|compareText |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 | |
||
9 | |compareText |比较的字符串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 top166.com |
||
25 | mov s2 top166.com |
||
26 | |
||
27 | #if |
||
28 | compareText s1 s2 |
||
29 | #act |
||
30 | sendMsg 6 两个比较的字符串相同 |
||
31 | #elseAct |
||
32 | sendMsg 6 两个比较的字符串不同 |