Difference between revisions of "Writeln"
Jump to navigation
Jump to search
imported>Icon315 (Code Sample) |
imported>Bale m |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
− | |||
function1={{Function| | function1={{Function| | ||
Line 21: | Line 20: | ||
description=If you have 5 or more hobo nickels, it will write "bowl of fishysoisse '''(5)'''" at the top of the page| | description=If you have 5 or more hobo nickels, it will write "bowl of fishysoisse '''(5)'''" at the top of the page| | ||
code=<syntaxhighlight> | code=<syntaxhighlight> | ||
− | + | if (available_amount($item[hobo nickel]) >= 5 ) | |
− | + | writeln("<center>bowl of fishysoisse <b>(5)</b></center>"); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | if ( ( | ||
− | |||
− | |||
</syntaxhighlight>}}| | </syntaxhighlight>}}| | ||
− | |||
see_also={{SeeAlso|write}}| | see_also={{SeeAlso|write}}| | ||
}} | }} | ||
+ | |||
+ | [[Category:Relay Browser Functions]] |
Latest revision as of 05:26, 22 May 2010
Function Syntax
- text is the text to print
Prints the specified text to the source of the page to be displayed by a relay browser script, ending with a line break (in the source, not necessarily in how the text is displayed).
Code Sample
If you have 5 or more hobo nickels, it will write "bowl of fishysoisse (5)" at the top of the page
if (available_amount($item[hobo nickel]) >= 5 )
writeln("<center>bowl of fishysoisse <b>(5)</b></center>");