项目

一般

简介

Large » 历史记录 » 版本 2

yangdefeng, 2022-05-25 07:42

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