# Conditional statements

<table><thead><tr><th width="168">NAME</th><th>DESCRIPTION</th><th data-hidden></th></tr></thead><tbody><tr><td><a href="conditional-statements/averageif">AVERAGEIF</a></td><td> Returns the average value in a list if they meet a certain criterion</td><td></td></tr><tr><td><a href="conditional-statements/countif">COUNTIF</a></td><td>Returns the count of values in a list if they meet a certain criterion</td><td></td></tr><tr><td><a href="conditional-statements/filterif">FILTERIF</a></td><td>Returns the list of items that match the given condition</td><td></td></tr><tr><td><a href="conditional-statements/if">IF </a></td><td>Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE</td><td></td></tr><tr><td><a href="conditional-statements/ifna">IFNA</a></td><td>Returns the value you specify if a formula returns the #N/A error value; otherwise, it returns the result of the formula</td><td></td></tr><tr><td><a href="conditional-statements/sumif">SUMIF</a></td><td>Returns the sum of values in a list if they meet a certain criterion</td><td></td></tr><tr><td><a href="conditional-statements/switch">SWITCH</a></td><td>Evaluates an expression against a list of values and returns the result corresponding to the first matching value. If there is no match, an optional default value is returned</td><td></td></tr></tbody></table>


---

# 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://docs.inforiver.com/formula-syntax/conditional-statements.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.
