i was wondering if this was ok in a for loop, I'm getting an error in my program and dont know if its coming from this. Basically I just want this to increment x while it calls up on another function f(y,z)

Code:
            for ( a = 1.001, ( f(a,angle_theta) * f(b,angle_theta) )> 0 ||
                 a < 50, a = a + 2 )
                 
                 ;

am I putting to much stuff in the for loop? I want it to break out of the for loop once the middle conditions aren't met, and i don't want the body of the loop to do anything, just keep incrementing a.


Thank you