isNumeric

Returns true if the variable can be parsed as a number.

Syntax:

$[ScriptVariable]::isNumeric()

Parameters:

None

Example:

The following example illustrates the syntax for the isNumeric() method.

$str = "1423"

$number = $str::isNumeric()

print($number)

Output:

true