To bounty
Jump to navigation
Jump to search
Function Syntax
bounty to_bounty(string convert )
- convert is the string to convert
When supplied a string, returns the bounty that corresponds to the specified parameter convert. This is not a fuzzy match and it is not case-sensitive. The string needs to strictly match the name of the bounty, exactly.
Code Samples
Following example shows basic to_bounty operations.
print(to_bounty("dirty coal button"), "green");
print(to_bounty("dirty coal butto"), "red");
It gives the following output.
dirty coal button none
See Also
Special
If no match is found for convert, this function returns $bounty[ none ].