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