$ZBITFIND()

The $ZBITFIND function performs the analog of the $FIND function on a bit string. It returns an integer that identifies the position after the first position equal to a truth-valued expression that occurs at, or after, the specified starting position.

The format for the $ZBITFIND function is:

    $ZBITFIND(expr,tvexpr[,intexpr])
    

If the optional integer argument exceeds the length of the string, or if the function finds no further bits, $ZBITFIND() returns a zero value.