Hi
I have the following code sample, where the only difference between the 2 parts of the If statement is the less than/greater than operators.
Is there a better way to write this? Could almost do with being able to define an Operator variable.
If myVar = true Then
Do While (X < Y)
'call Method A
'the values of X and Y will change within this loop
Loop
Else
Do While (X > Y)
'call Method A
'the values of X and Y will change within this loop
Loop
End If
thanks