Not » 历史记录 » 版本 1
machenhe, 2022-04-21 15:00
| 1 | 1 | machenhe | _*%{color:green}not%*_ |
|---|---|---|---|
| 2 | |||
| 3 | 标签:命令定义 |
||
| 4 | |||
| 5 | 条件不满足时触发 |
||
| 6 | 可以放在任何比较类命令之前(可以进行if判断的命令),形成组合命令 |
||
| 7 | 比如 |
||
| 8 | not large |
||
| 9 | not small |
||
| 10 | not equal |
||
| 11 | ...... |
||
| 12 | |||
| 13 | - |
||
| 14 | - |
||
| 15 | *%{color:deepskyblue}脚本示例:%* |
||
| 16 | |||
| 17 | bq. [@main] |
||
| 18 | %{color:lightgrey};------------------------------------------% |
||
| 19 | #if |
||
| 20 | #act |
||
| 21 | mov n10 100 |
||
| 22 | mov n14 100 |
||
| 23 | #if |
||
| 24 | not large n10 n14 |
||
| 25 | #act |
||
| 26 | sendMsg 6 变量n10<$tr(n10)> |
||
| 27 | sendMsg 6 变量n14<$str(n14)> |
||
| 28 | sendMsg 6 变量n10的值不大于变量n14的值 |
||
| 29 | %{color:lightgrey};------------------------------------------% |
||
| 30 | #if |
||
| 31 | #act |
||
| 32 | mov n10 101 |
||
| 33 | mov n14 100 |
||
| 34 | #if |
||
| 35 | not equal n10 n14 |
||
| 36 | #act |
||
| 37 | sendMsg 6 变量n10<$tr(n10)> |
||
| 38 | sendMsg 6 变量n14<$str(n14)> |
||
| 39 | sendMsg 6 变量n10的值不等于变量n14的值 |