Small » 历史记录 » 修订 3
修订 2 (yangdefeng, 2022-05-25 07:30) → 修订 3/4 (yangdefeng, 2022-05-25 07:30)
h4. _*%{color:green}small%*_
检测指定变量或数值是否小于待比较变量或数值
标签:命令定义
*格式*
|命令名|参数1 |参数2 |
|small |变量(或数值) |变量(或数值) |
说明:
* 参数1: 待检测的变量或数值
数据类型为整数
* 参数2: 待用来与参数1比较的变量或数值
数据类型为整数
* 检测参数1的值是否小于参数2的值
-
-
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
bq. [@main]
#if
#act
[[mov]] [[基础变量|n10]] 100
[[mov]] [[基础变量|n14]] 1000
%{color:lightgrey};------------------------------------------%
#if
*{color:green}small* [[基础变量|n10]] [[基础变量|n14]]
#act
[[sendMsg]] 6 1变量n10的值小于变量n14的值
%{color:lightgrey};------------------------------------------%
#if
*{color:green}small* [[基础变量|n10]] [[<$str()>|<$str(n14)>]]
#act
[[sendMsg]] sendMsg 6 2变量n10的值小于变量n14的值
%{color:lightgrey};------------------------------------------%
#if
*{color:green}small* [[<$str()>|<$str(n10)>]] [[<$str()>|<$str(n14)>]]
#act
[[sendMsg]] sendMsg 6 3变量n10的值小于变量n14的值
%{color:lightgrey};------------------------------------------%
#if
*{color:green}small* [[<$str()>|<$str(n10)>]] [[基础变量|n14]]
#act
[[sendMsg]] sendMsg 6 4变量n10的值小于变量n14的值