realrank(F,Limit=>r)
complexrank(F,Limit=>r)
This tells the method to search the rank in the range between 1 and $r-1$. If the output is not an integer then the rank is greater than or equal to $r$.