Microsoft
Software
Hardware
Network
Question : multiple conditions in WHILE
what is wrong in the foll syntax:
WHILE (@Var1 < 1 AND @Var2 < 1)
This does not seem to be honored. When any one of the variable become >1, the loop breaks.
thanks
Answer : multiple conditions in WHILE
exactly.
when any of the 2 > 1, you have:
WHILE ( false AND true ) which is FALSE
you seem to want:
WHILE (@Var1 < 1 OR @Var2 < 1)
Random Solutions
Powershell to HTML displays
How to find and replace specific string with blank using sed or any better cmd?
Mounting NFS NAS in ESX 3
Database Design - Double Entry Accounting
jquery dhtml dynamic population issue
iPad Camera Connection Kit does not display .jpg images on iPad
MySQL IFNULL() selection
perl regexp with div tags and space
Readystate in IE in VBA program
Problems installing the AjaxControlTooKit.dll