klyn.Int.tryParse
method
public static tryParse( readonly value as String, out result as Int ) as Boolean
Description

Parses text into an Int without propagating invalid-value errors.

Parameters
ParameterDescription
valueNumeric text accepted by the Int constructor.
resultReceives the parsed value on success; remains unchanged on failure.
Returns

true on success; false for malformed or out-of-range text.

Example
result = Int()
assert Int.tryParse("42", result)
assert result == Int(42)
assert not Int.tryParse("invalid", result)
assert result == Int(42)