Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

SWITCH case for string types

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 12-22-2006   #1 (permalink)
John Smith
Guest


 

SWITCH case for string types

In HELP ABOUT_SWITCH, the second example shows that the case literal, if it
is a string, does not have to be inclosed by "".

However, in the complete syntax section that follows, it says:

"string" | number|variable|{expression} { Statementlist }
default { statement list }

What does "string" in the sytax section mean? I tried it out and it appears
that string does not have to be surrounded by "s. Which leads to a bigger
question: how to differentiate between the string "default" and the default
case?

Thanks.

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with $var | select-string -pattern $string -q Ben Christian PowerShell 3 02-08-2008 12:41 PM
How export-csv deals with string versus string[] Marco Shaw PowerShell 2 07-13-2007 12:18 PM
String PRODUCT_NAME was not found in string table Extracampine Vista General 3 02-12-2007 06:15 AM
Out-String -Stream - what does the switch do? Alex K. Angelopoulos [MVP] PowerShell 4 05-24-2006 05:00 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008