我们使用 Perl 脚本来检查是否有条件。
##code(t1) is as belows:
my @results = (93, 4, 0);
my @param_array = (
[ "50", "<", "stat1", ],
[ "1", "<", "stat2", ],
[ "3", "<", "stat3", ],
);
for ($i=0; $i < @results; $i++) {
print (" " . $results[$i] . " " . $param_array[$i][1] . " " . $param_array[$i][0] . " ");
if ( $results[$i] + 0 < $param_array[i][0] + 0 ) {
print " beend";
}
else {
print " end111";
}
} …Run Code Online (Sandbox Code Playgroud) perl ×1