pure functiongetInteger

Get scalar Integer value from INI file

Extends from Interfaces.INI.getInteger (Get scalar Integer value from INI file).

Information

If strict=true and the line being read contains more than a name=value pair this function will return an error. However, when strict=false it will return the value and ignore the rest of the line.

For example

[example_section]
name=13 ;this is a comment

In this example, if strict=true we will get an error but if strict=false it will return the value 13

Inputs

TypeNameDefaultDescription
StringvarName (from partialGetInteger)Key
Stringsection (from getInteger)""Section
Types.ExternINIFileini (from getInteger)External INI file object
Booleanstrict (from getInteger)trueReturn an error if there are characters on the line that aren't part of the value

Outputs

TypeNameDefaultDescription
Integery (from partialGetInteger)Integer value
Booleanexist (from partialGetInteger)= true, if varName exits; = false, if it does not exist and y is set to 0