View Single Post
Old 08-26-2008   #5 (permalink)
Shay Levy [MVP]


 
 

Re: Break is not working ?

Hello IT,

If you mean quit = close powershell then replace 'break' with 'exit'

....
2 {exit}


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic

IS> Quit meaning i wld like to quit the program.
IS>
IS> I wld like to make the choice via the switch statement, if select q,
IS> which is equal to 2, after break, the program did not quit.
IS>
IS> I find it very strange. It did not work at my side. Even i put break
IS> in every switch statement, it still does not break.
IS>



My System SpecsSystem Spec