2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
1
Task/Jump-anywhere/PowerShell/jump-anywhere-1.psh
Normal file
1
Task/Jump-anywhere/PowerShell/jump-anywhere-1.psh
Normal file
|
|
@ -0,0 +1 @@
|
|||
:myLabel while (<condition>) { <statement list>}
|
||||
9
Task/Jump-anywhere/PowerShell/jump-anywhere-2.psh
Normal file
9
Task/Jump-anywhere/PowerShell/jump-anywhere-2.psh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
:myLabel while (<condition 1>)
|
||||
{
|
||||
for ($item in $items)
|
||||
{
|
||||
if (<condition 2>) { break myLabel }
|
||||
$item = $x # A statement inside the For-loop
|
||||
}
|
||||
}
|
||||
$a = $c # A statement after the labeled While-loop
|
||||
15
Task/Jump-anywhere/PowerShell/jump-anywhere-3.psh
Normal file
15
Task/Jump-anywhere/PowerShell/jump-anywhere-3.psh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
:red while (<condition1>)
|
||||
{
|
||||
:yellow while (<condition2>)
|
||||
{
|
||||
while (<condition3>)
|
||||
{
|
||||
if ($a) {break}
|
||||
if ($b) {break red}
|
||||
if ($c) {break yellow}
|
||||
}
|
||||
# After innermost loop
|
||||
}
|
||||
# After "yellow" loop
|
||||
}
|
||||
# After "red" loop
|
||||
Loading…
Add table
Add a link
Reference in a new issue