At VB.net:
if i > 0 then do stuff here! end if
In C #:
if (i > 0) { do stuff here! }
You cannot escape from the if statement. If you try to do this, your logic is wrong, and you are approaching it from the wrong angle.
An example of what you are trying to achieve will help clarify, but I suspect that you are not structuring it correctly.
Tom gullen
source share