<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Property_default_value</id>
	<title>Property default value - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Property_default_value"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Property_default_value&amp;action=history"/>
	<updated>2026-04-25T00:26:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Property_default_value&amp;diff=8872&amp;oldid=prev</id>
		<title>Philmasterplus: Created page with &quot;&lt;onlyinclude&gt;{{{{{format|Function2}}} |name=property_default_value |function1.return_type=string |function1.description=Returns the default value of a property, or an empty st...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Property_default_value&amp;diff=8872&amp;oldid=prev"/>
		<updated>2020-12-23T10:47:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;onlyinclude&amp;gt;{{{{{format|Function2}}} |name=property_default_value |function1.return_type=string |function1.description=Returns the default value of a property, or an empty st...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;onlyinclude&amp;gt;{{{{{format|Function2}}}&lt;br /&gt;
|name=property_default_value&lt;br /&gt;
|function1.return_type=string&lt;br /&gt;
|function1.description=Returns the default value of a property, or an empty string if a default value does not exist.&lt;br /&gt;
|function1.param1=name&lt;br /&gt;
|function1.param1.type=string&lt;br /&gt;
|function1.param1.description=Property name&lt;br /&gt;
|description=All properties in &amp;lt;code&amp;gt;data/defaults.txt&amp;lt;/code&amp;gt; have a default value.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;This function was added in [https://kolmafia.us/threads/17892-add-a-bunch-of-ash-support-for-doing-interesting-things-with-properties-bool.21586/ r17892].&amp;lt;/p&amp;gt;&lt;br /&gt;
|code1={{CodeSample&lt;br /&gt;
  |title=Code Samples&lt;br /&gt;
  |description=Check if a property named &amp;lt;code&amp;gt;autoBuyPriceLimit&amp;lt;/code&amp;gt; has a default value, and if so, print it.&lt;br /&gt;
  |code=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;d&amp;quot;&amp;gt;&lt;br /&gt;
if ( property_has_default( &amp;quot;autoBuyPriceLimit&amp;quot; ) )&lt;br /&gt;
{&lt;br /&gt;
   print( property_default_value( &amp;quot;autoBuyPriceLimit&amp;quot; ) );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  |moreinfo=&lt;br /&gt;
}}&lt;br /&gt;
|see_also={{SeeAlso/Property Functions}}&lt;br /&gt;
|cli_equiv=&lt;br /&gt;
|more_info=&lt;br /&gt;
|special=&lt;br /&gt;
|{{{1|}}}&lt;br /&gt;
}}&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
[[Category:Miscellaneous Functions]]&lt;/div&gt;</summary>
		<author><name>Philmasterplus</name></author>
	</entry>
</feed>