switch

$num = 22
switch ($num)
{
1
{Write-Host "this is 1";break}
2
{Write-Host "this is 2"
1+2
break
}
default
{Write-Host "cpp";break}
}

 

posted on 2014-05-12 21:11  momingliu11  阅读(191)  评论(0编辑  收藏  举报