Returns the index of the first element of the Boolean vector that is true and returns 0, if no element is true
function firstTrueIndex input Boolean b[:]; output Integer index; end firstTrueIndex;