TIniFile.SectionExists

function SectionExists(const Section: string): Boolean Section: Section name Result: TRUE if a section exists

Description
This function will check whether a section exists in a TIniFile and return TRUE if so, FALSE otherwise.

Example
example.ini in soldatserver's root folder

script code: