--- # Contents [TOC] --- # Introduction Object instance: `properties` --- ## Description Defines functions for accessing Java system properties. --- # Methods --- ## poperties:enabled
properties:enabled (p)
- Checks if a property is enabed. - Parameters: - p: _([string][LuaString])_ Property name. - Returns: _([bool][LuaBoolean])_ `true` if enabled. --- ## poperties:equals
properties:equals (p, v)
- Checks if a property is set to a specified value. - Parameters: - p: _([string][LuaString])_ Property name. - v: _([string][LuaString])_ Value to compare with. - Returns: _([bool][LuaBoolean])_ `true` if the value of the property is the same as ___v___. --- ## poperties:getValue
properties:getValue (p)
- Retrieves the value of a property. - Parameters: - p: _([string][LuaString])_ Property name. - Returns: _([string][LuaString])_ Property value or [nil][LuaNil]. --- # Usage Examples ```lua -- example of only executing script contents on test server if not properties:enabed("stendhal.testserver") then do return end end ``` [LuaBoolean]: http://luaj.org/luaj/3.0/api/org/luaj/vm2/LuaBoolean.html [LuaNil]: http://luaj.org/luaj/3.0/api/org/luaj/vm2/LuaNil.html [LuaString]: http://luaj.org/luaj/3.0/api/org/luaj/vm2/LuaString.html