Skip to content

set_default_value

Syntax

set_default_value(<table_name>, <value>)

Parameters

<table_name>
The name of a table that was declared in the variables block.
<value>
The number of days between recordings of the associated output data.

Description

Sets the default value to return when a lookup operation in a table fails to find the specified key.

When looking up values in a table, an error occurs if the key does not exist, unless the table has a had a default value set, in which case the default value is returned as the value of the lookup.

Examples

# for some shared table my_table
set_default_value(my_table, 999)

See Also