# Condition

A condition defines a boolean expression. If this condition is fulfilled (*true*), then a notification is created which eventually then is going to be delivered to the customer.

<figure><img src="/files/v3QkHIDZf1N32t1JnRWW" alt=""><figcaption><p>This condition shall trigger when the predicted power generation for tomorrow is lower then yesterday's power consumption, and car charges only with photovoltaics.</p></figcaption></figure>

The condition can be expressed as a mathematical expression producing a boolean value, which consists of:

* dataset references \
  E.g. `$MyConsumption` refers to the dataset with name *MyConsumption*
* values \
  E.g. number `1000`
* operators \
  E.g. plus operator `+`, or comparison operator `=`
* functions \
  E.g. average function `AVG(...)`, which calculates the average of specified time series

Have a look at [Rule Language](/platform-manual/rules/rule-language.md) to see the full feature set of the expression language.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.moost.io/platform-manual/rules/rule-configurator/condition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
