Description Usage Arguments Value Examples
Get package parameter
1 |
param |
parameter to get |
package |
package of the parameter (NULL if running from a package) |
fallback |
what to do if parameter not found |
value of param
in package package
and fallback
if parameter not found
1 2 3 4 5 6 7 8 9 | register_param('param1', 'tgconfig')
set_param('param1', 'value1', 'tgconfig')
get_param('param1', 'tgconfig')
# try to get a parameter that doesn't exist
get_param('other_param', 'tgconfig')
# sometimes we want to throw and error if the parameter doesn't exist
# get_param('other_param', 'tgconfig', fallback=stop()) # would trow and error
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.