Default shows the block value or the default value, if this block is not set.
Table 2.8. Default: parameters
Name | Type | Required? | Description |
---|---|---|---|
test | Expression | Yes | The block we want to show. |
alt | Expression | No | The alternative value, if the first block doesn't exist. |
The example will show the text "No such price", if the block $price is not created by the script, or its value, if it is.