Excerpt | ||
---|---|---|
| ||
warning(message) Adds a warning message into the Log and displays the message to the user. |
Function: warning()
Adds a warning message into the Logthe log and displays the message to the user. This function is often used when creating a model and trying to work out why an Expression expression is not behaving as expected.
The Detail field of the Log Message log message will contain a list of the current values of any Attributes, Pipes and $-Variables which are relevant in the context of the Expressionexpression.
Syntax
warning(message)
Argument | Type | Description |
---|---|---|
message | String | A message to appear in the |
log. Note that this could be an |
expression. |
Examples
ifNull (in.rate, warning("Missing rate") )
This example adds a message to the Log if logĀ if no rate is found.