Skip to content

Instantly share code, notes, and snippets.

@rayterrill
Created January 21, 2018 18:02
Show Gist options
  • Select an option

  • Save rayterrill/60e915388f10bf0f0178dba8affee05c to your computer and use it in GitHub Desktop.

Select an option

Save rayterrill/60e915388f10bf0f0178dba8affee05c to your computer and use it in GitHub Desktop.
Function Test-Function {
param (
[ValidateSet('test','test1')][string]$a,
[ValidateSet('test','test2')][string]$b
)
if ($a) { Write-Host "a was set to $($a)" }
if ($b) { Write-Host "b was set to $($b)" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment