View Single Post
Old 08-26-2008   #4 (permalink)
IT Staff


 
 

Re: Break is not working ?

u are right man.



"Shay Levy [MVP]" <no@xxxxxx> wrote in message
news:89228ed2406d88cad58f1e6a0c7d@xxxxxx
Quote:

> 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