With the highly unusual addition that there's an extra if statement inside. That's weird.
And the initial value of 9999 is highly suspicious. All the numbers may be higher than that.
I'd say it has complexity value 4 -- "find the minimum value, in the usual way, except only look at odd numbers, and use 9999 as the initial value".