ParseInt

Category: Script / Strings
Since engine version: 8.0 OC

Description

Parses a string representing a base 10 number into an integer value. If the string does not entirely consist of a base 10 number, optionally signed, nil is returned.

Syntax

int ParseInt(string value);

Parameter

value:
string representation of a number to parse

Example

ParseInt("14")
Returns the integer 14.
ParseInt("fourteen")
Returns nil.