HasKeywordString - Form: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
m (Correct Parameter Name (asKeyword --> s))
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
bool Function HasKeywordString(string s) native
bool Function HasKeywordString(string s) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
if (PotionProperty.HasKeywordString("vendoritemfood"))
if (PotionProperty.HasKeywordString("vendoritemfood"))
Debug.Notification("This is food.")
Debug.Notification("This is food.")
Line 26: Line 26:
Debug.Notification("This is a potion.")
Debug.Notification("This is a potion.")
endif
endif
</source>
</syntaxhighlight>


== Note ==
== Note ==

Navigation menu