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

Scroll to Top