Contents
Introduction
Object instance: properties
Description
Defines functions for accessing Java system properties.
Methods
poperties:enabled
properties:enabled p
poperties:equals
properties:equals p, v
- Checks if a property is set to a specified value.
- Parameters:
- Returns:
bool
trueif the value of the property is the same as v.
poperties:getValue
properties:getValue p
- Retrieves the value of a property.
- Parameters:
- p string Property name.
- Returns: string Property value or nil.
Usage Examples
-- example of only executing script contents on test server
if not properties:enabed("stendhal.testserver") then
do return end
end