For a specific topic in a .ini file, $ini(file,topic,N) returns the Nth item, or $null if N exceeds the number of items; unless N is 0 in which case the number of items is returned. However, if the given topic does not exist, the return value is 0 regardless of the value of N. Personally, I'd rather have it return $null if the specified N is greater than zero.. if anything, that would be more consistent with the rest of the identifiers (including $ini with two parameters).


Saturn, QuakeNet staff