|
|
|||||||
I need to do some code like th following: SELECT CASE #ProductType = "Windows NT Workstation" or "Windows 2000 Professional" or "Windows XP Professional" CASE @ProductType = (something other than the above) ENDSELECT Or would this be better with an "IF"? I am not sure about using "OR" and I'm also not sure about evaluating strings with the = sign. Is there a better way to do it? This is all new to me who am used to UNIX shell scripting. |
||||||||
|
|
|||||||
if that's what you are literally trying to do, check out the @inwin macro Quote: |
||||||||
|
|
|||||||
Close, but no cigar. What an I saying... not even close. you can use OR but you need as many = as you have OR. CASE @ProductType = "Windows NT Workstation" or @ProductType = "Windows 2000 Professional" or @ProductType = "Windows XP Professional" CASE 1 ;none of the above |
||||||||
|
|
|||||||
Makes sense! |