Equal » 历史记录 » 版本 4
yangdefeng, 2022-05-25 07:22
1 | 2 | yangdefeng | h4. _*%{color:green}equal%*_ |
---|---|---|---|
2 | |||
3 | 1 | machenhe | 检测指定变量或数值与待比较变量或数值是否一致 |
4 | |||
5 | 标签:命令定义|equal |
||
6 | |||
7 | *格式* |
||
8 | |命令名|参数1 |参数2 | |
||
9 | |equal |变量(或数值) |变量(或数值) | |
||
10 | |||
11 | 说明: |
||
12 | 2 | yangdefeng | * 参数1: 待检测的变量或数值 |
13 | 1 | machenhe | |
14 | 2 | yangdefeng | * 参数2: 待用来与参数1比较的变量或数值 |
15 | 1 | machenhe | |
16 | * 检测参数1的值是否等于参数2的值 |
||
17 | %{color:deepPink}注: |
||
18 | 如果参数2为p,d,m,n,s,x,u,t,i,g,a与数字组合 |
||
19 | 则参数2代表对应变量的值(不是拿变量名去比较)% |
||
20 | |||
21 | - |
||
22 | - |
||
23 | |||
24 | 2 | yangdefeng | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
25 | 1 | machenhe | |
26 | bq. [@main] |
||
27 | #if |
||
28 | #act |
||
29 | 2 | yangdefeng | [[mov]] [[基础变量|s10]] 你好特戒 |
30 | 1 | machenhe | #if |
31 | 2 | yangdefeng | *{color:green}equal* [[基础变量|s10]] 你好特戒 |
32 | 1 | machenhe | #act |
33 | 2 | yangdefeng | [[sendMsg]] 6 变量s10的值等于字符串"你好特戒" |
34 | 1 | machenhe | %{color:lightGrey};------------------------------------------% |
35 | #if |
||
36 | #act |
||
37 | 2 | yangdefeng | [[mov]] [[基础变量|s14]] 你好特戒 |
38 | 1 | machenhe | #if |
39 | 3 | yangdefeng | equal [[基础变量|s10]] [[<$str()>|<$str(s14)>]] |
40 | 1 | machenhe | #act |
41 | 4 | yangdefeng | [[sendMsg]] 6 变量s10的值等于变量s14的值 |
42 | 1 | machenhe | %{color:lightGrey};------------------------------------------% |
43 | #if |
||
44 | 3 | yangdefeng | *{color:green}equal* [[<$str()>|<$str(s10)>]] [[基础变量|s14]] |
45 | 1 | machenhe | #act |
46 | 4 | yangdefeng | [[sendMsg]] 6 变量s10的值等于变量s14的值 |
47 | 1 | machenhe | |
48 | |||
49 | 3 | yangdefeng | bq. %{color:lightGrey};--检测字符串为空% |
50 | 1 | machenhe | #if |
51 | 3 | yangdefeng | %{color:lightGrey};--s$材料名没有赋值% |
52 | *{color:green}equal* <$str(s$材料名)> |
||
53 | 1 | machenhe | #act |
54 | 3 | yangdefeng | [[messageBox]] 请选择要解读的内容 |
55 | 1 | machenhe | |
56 | ---- |