property_default_value
Revision as of 10:47, 23 December 2020 by Philmasterplus (talk | contribs) (Created page with "<onlyinclude>{{{{{format|Function2}}} |name=property_default_value |function1.return_type=string |function1.description=Returns the default value of a property, or an empty st...")
Function Syntax
string property_default_value( string name )
- Returns the default value of a property, or an empty string if a default value does not exist.
- name: Property name
All properties in data/defaults.txt
have a default value.
This function was added in r17892.
Code Samples
Check if a property named autoBuyPriceLimit
has a default value, and if so, print it.
if ( property_has_default( "autoBuyPriceLimit" ) )
{
print( property_default_value( "autoBuyPriceLimit" ) );
}