Holiday: Difference between revisions
Jump to navigation
Jump to search
imported>Bale start page |
imported>Relyk No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ | ||
#vardefine:name|holiday}}{{ | |||
#vardefine:return_type|string}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | |||
function1={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
}}| | |||
function_description=A string representation of the [http://kol.coldfront.net/thekolwiki/index.php/Kingdom_of_Loathing_Calendar in-game holiday]. Returns an empty string otherwise.| | |||
< | code1={{CodeSample| | ||
title=Code Samples| | |||
description=| | |||
code= | |||
<syntaxhighlight> | |||
if(holiday() == "Veracity's Birthday") | |||
private_message("veracity", "Happy Birthday!"); | |||
</syntaxhighlight>}} | |||
| | |||
cli_equiv=Also available as the CLI command "holiday". | |||
}} | |||
[[Category: | [[Category:Miscellaneous Functions]] |
Revision as of 02:52, 27 September 2015
Function Syntax
string holiday()
A string representation of the in-game holiday. Returns an empty string otherwise.
Code Samples
if(holiday() == "Veracity's Birthday")
private_message("veracity", "Happy Birthday!");
CLI Equivalent
Also available as the CLI command "holiday".