Created
February 4, 2017 12:06
-
-
Save mallibone/463ed7c506c81825f49321414454d505 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while((Get-Random -Minimum 1 -Maximum 100) -gt 50) | |
{ | |
Write-Host "While... Random seems to be bellow 50." | |
} | |
Do | |
{ | |
Write-Host "Do While... Random seems to be bellow 50." | |
} while((Get-Random -Minimum 1 -Maximum 100) -gt 50) | |
for($i=1; $i -le 10; $i++) | |
{ | |
Write-Host "Current index is $i" | |
} | |
$items = @("Donna", "Harvey", "Rahel", "Mike") | |
foreach ($item in $items) | |
{ | |
Write-Host "Hello $item" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment