Holiday: Difference between revisions
Jump to navigation
Jump to search
imported>Bale start page |
imported>Relyk No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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 {{kolwiki|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]] |
Latest revision as of 03:15, 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".