I'm not sure that I understand your second question.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
Both of your solutions did work. Re: my second question, i'm trying to use the switch command and normally the result is displayed. I don't want the result displayed. As a sample code:
a=0
switch($a) {
0{"12"}
}
Then, if i type $a it should display 12. I've done this in VBScript using select case statement
a=0
Select Case a
Case "0"
a = "12"
End Select
WScript.Echo a
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.