Skip to content

Instantly share code, notes, and snippets.

@arkag
Created August 27, 2020 17:58
Show Gist options
  • Save arkag/668278acf0dc4b9851842c6850999b8c to your computer and use it in GitHub Desktop.
Save arkag/668278acf0dc4b9851842c6850999b8c to your computer and use it in GitHub Desktop.
$Array = if ($Var -eq "Something") {
@("One Element")
} else {
@("One Element","Two Elements")
}
for($i = 0; $i -lt $Array.length; $i++){
$Array[$i]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment