Function call - stack was not emptied

Issue #18 resolved
Fabian Maurer created an issue
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)

  1. Log in to comment