Large » 历史记录 » 版本 1
machenhe, 2022-04-21 14:59
| 1 | 1 | machenhe | _*%{color:green}large%*_ |
|---|---|---|---|
| 2 | 检测指定变量或数值是否大于待比较变量或数值 |
||
| 3 | |||
| 4 | 标签:命令定义 |
||
| 5 | |||
| 6 | *格式* |
||
| 7 | |命令名|参数1 |参数2 | |
||
| 8 | |large |变量(或数值) |变量(或数值) | |
||
| 9 | |||
| 10 | 说明: |
||
| 11 | * 参数1 |
||
| 12 | 待检测的变量或数值 |
||
| 13 | 数据类型为整数 |
||
| 14 | |||
| 15 | * 参数2 |
||
| 16 | 待用来与参数1比较的变量或数值 |
||
| 17 | 数据类型为整数 |
||
| 18 | |||
| 19 | * 检测参数1的值是否大于参数2的值 |
||
| 20 | |||
| 21 | - |
||
| 22 | - |
||
| 23 | |||
| 24 | *%{color:deepskyblue}脚本示例:%* |
||
| 25 | |||
| 26 | bq. [@main] |
||
| 27 | #if |
||
| 28 | #act |
||
| 29 | mov n10 1000 |
||
| 30 | mov n14 100 |
||
| 31 | %{color:lightgrey};------------------------------------------% |
||
| 32 | #if |
||
| 33 | large n10 n14 |
||
| 34 | #act |
||
| 35 | sendMsg 6 1变量n10的值大于变量n14的值 |
||
| 36 | %{color:lightgrey};------------------------------------------% |
||
| 37 | #if |
||
| 38 | large n10 <$str(n14)> |
||
| 39 | #act |
||
| 40 | sendMsg 6 2变量n10的值大于变量n14的值 |
||
| 41 | %{color:lightgrey};------------------------------------------% |
||
| 42 | #if |
||
| 43 | large <$str(n10)> <$str(n14)> |
||
| 44 | #act |
||
| 45 | sendMsg 6 3变量n10的值大于变量n14的值 |
||
| 46 | %{color:lightgrey};------------------------------------------% |
||
| 47 | #if |
||
| 48 | large <$str(n10)> n14 |
||
| 49 | #act |
||
| 50 | sendMsg 6 4变量n10的值大于变量n14的值 |