项目

一般

简介

行为

checkListAllDigit

数组元素是否全为数字

标签:命令定义|checkListAllDigit>checkListAllDigit

格式
命令名 参数1
checkListAllDigit 待检测数组
说明
  • 参数1:待检测数组


特戒引擎脚本示例:

[@main]
#if
#act
mov L$测试 [11,22,33,44,55,66,77,88]
goto @测试

mov L$测试 [11,22,33,44,55,66,77,88,aa]
goto @测试

[@测试]
#if
checkListAllDigit L$测试
#act
getListMaxVar L$测试 s1
getListMinVar L$测试 s2
print 【取元素最值】<$str(L$测试)>:最大值<$str(s1)>,最小值<$str(s2)>
#elseAct
print 【取元素最值】<$str(L$测试)>存在非数字元素,取最值失败,返回error。

tejie 更新于 3 个月 之前 · 1 修订