Inno Setup Preprocessor: Int

Prototype

int Int(any Value, int? Default)

Description

Converts an expression (first parameter) to its integer representation. If the expression is an integer, the result of the function is the expression value. If the expression is void, the result is 0. If the expression is a string, ISPP tries to convert it to an integer; if such an attempt fails, an error is raised unless the second parameter specifies the default result.