GetListMinVar » 历史记录 » 版本 1
tejie, 2024-07-02 15:29
| 1 | 1 | tejie | h4. _%{color:green}getListMinVar%_ |
|---|---|---|---|
| 2 | |||
| 3 | 获取数组最小值 |
||
| 4 | |||
| 5 | 标签:命令定义|getListMinVar>getListMinVar |
||
| 6 | |||
| 7 | *格式* |
||
| 8 | |命令名 |参数1 |参数2 | |
||
| 9 | |getListMinVar|原始数组 |变量返回值 | |
||
| 10 | |||
| 11 | |||
| 12 | *说明* |
||
| 13 | * 参数1:原始数组 |
||
| 14 | |||
| 15 | * 参数2:变量返回值 |
||
| 16 | |||
| 17 | |||
| 18 | - |
||
| 19 | - |
||
| 20 | |||
| 21 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 22 | |||
| 23 | bq. [@main] |
||
| 24 | #if |
||
| 25 | #act |
||
| 26 | [[mov]] L$测试 [11,22,33,44,55,66,77,88] |
||
| 27 | [[goto]] <notextile>@</notextile>测试 |
||
| 28 | <notextile></notextile> |
||
| 29 | [[mov]] L$测试 [11,22,33,44,55,66,77,88,aa] |
||
| 30 | [[goto]] <notextile>@</notextile>测试 |
||
| 31 | <notextile></notextile> |
||
| 32 | <notextile>[@测试]</notextile> |
||
| 33 | #if |
||
| 34 | [[checkListAllDigit]] L$测试 |
||
| 35 | #act |
||
| 36 | [[getListMaxVar]] L$测试 s1 |
||
| 37 | *{color:green}getListMinVar* L$测试 s2 |
||
| 38 | [[print]] 【取元素最值】<$str(L$测试)>:最大值<$str(s1)>,最小值<$str(s2)> |
||
| 39 | #elseAct |
||
| 40 | [[print]] 【取元素最值】<$str(L$测试)>存在非数字元素,取最值失败,返回error。 |