Difference between revisions of "ISSession:XMLSetting (Top-Level Object)"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | |||
− | |||
== Forms == | == Forms == | ||
*[[DataType:string|string]] '''XMLSetting['''xml file''','''section''','''setting''']''' | *[[DataType:string|string]] '''XMLSetting['''xml file''','''section''','''setting''']''' | ||
Line 8: | Line 6: | ||
== Examples == | == Examples == | ||
+ | *${XMLSetting[Settings.xml,Chat Options,Channel 1]} | ||
+ | : Retrieves the given setting from Settings.xml, or NULL if the setting does not exist | ||
+ | *${XMLSetting[Settings.xml,Chat Options,Channel 1,OFF]} | ||
+ | : Retrieves the given setting from Settings.xml, defaulting to "OFF" if the setting does not exist | ||
== See Also == | == See Also == |
Revision as of 21:21, 23 April 2005
Forms
- string XMLSetting[xml file,section,setting]
- Retrieves the given setting, loading the xml file first if necessary (NULL if the setting does not exist)
- string XMLSetting[xml file,section,setting,default]
- Same as above, but with a default value if the setting does not exist
Examples
- ${XMLSetting[Settings.xml,Chat Options,Channel 1]}
- Retrieves the given setting from Settings.xml, or NULL if the setting does not exist
- ${XMLSetting[Settings.xml,Chat Options,Channel 1,OFF]}
- Retrieves the given setting from Settings.xml, defaulting to "OFF" if the setting does not exist