isNumeric

Check if a value is numeric or not.

 

Function isNumeric ($x) {
try {
0 + $x | Out-Null
return $true
} catch {return $false}
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top