- changed milestone to 0.2.1-beta
- edited description
Function call - stack was not emptied
Issue #18
resolved
function TableGetKey($tab, $value)
for $key, $val in $tab do
if($val == $value) then
return $key; //crash seems to happen here
end
end
return nil;
end
label Start
$questions={"1","2"};
$key = TableGetKey($questions, "2");
end
This script crashes always. Maybe due to the generic loop ?
Comments (3)
-
reporter -
That is just me, derping the return inside the generic loop.
-
- changed status to resolved
- Log in to comment