![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Bug in about_if documentATION Just for fun i thought i'd read about_if, i guess most people skip this chapter, atleast i did. The following shows the if statement syntax: if (<test1>) {<code_block1>} [elseif (<test2) {<code_block2>}] [else <code_block3>}] Seems there's a bug in the syntax for else, it's missing an opening curly-brace PS> if($true) {"yes"} else "no"} Missing statement block after 'else' keyword. At line:1 char:24 + if($true) {"yes"} else " <<<< no"} Anyone noticed and reported a bug on this? -- Joris van Lier Please note that all scripts are supplied "as is" and with no warranty Blog: http://whizzrd.spaces.live.com |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: Bug in about_if documentATION Well spotted. I've looked at that a number of times and not noticed -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "Joris van Lier" wrote: > Just for fun i thought i'd read about_if, i guess most people skip this chapter, atleast i did. > > The following shows the if statement syntax: > if (<test1>) > {<code_block1>} > [elseif (<test2) > {<code_block2>}] > [else > <code_block3>}] > > Seems there's a bug in the syntax for else, it's missing an opening curly-brace > > PS> if($true) {"yes"} else "no"} > Missing statement block after 'else' keyword. > At line:1 char:24 > + if($true) {"yes"} else " <<<< no"} > > Anyone noticed and reported a bug on this? > > -- > Joris van Lier > Please note that all scripts are supplied "as is" and with no warranty > Blog: http://whizzrd.spaces.live.com > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where Can I Get Documentation? | HipHopHank | PowerShell | 4 | 02-14-2008 02:50 PM |
| Official SP1 Documentation | romanom | Vista General | 0 | 02-05-2008 08:35 AM |
| WSH 5.7 documentation | SWDWS | Vista account administration | 1 | 06-15-2007 05:26 PM |
| about_if examples muddled I think | Andrew Watt [MVP] | PowerShell | 0 | 10-12-2006 02:55 PM |
| More documentation sources | Joao Paulo Duque Vieira | Avalon | 2 | 05-10-2006 05:17 AM |