logical
Syntax:
AnyColumn
Context Filtering: ✓ Yes
Parameters
Validation
- Minimum parameters: 2
- Maximum parameters: Unlimited
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
logical
Syntax:
If(condition1, value1, [condition2], [value2], ..., [else])
AnyColumn
Context Filtering: ✓ Yes
| Name | Type | Required | Description |
|---|---|---|---|
condition 1 | logical | ✓ Yes | Logical condition that returns a result that is either True or False. |
value 1 | any | ✓ Yes | The value to be returned if its preceding condition is True. |
additional conditions and values | variadic | ✗ No | Several If/Then pairs can be listed in a single function. Every supplied condition must have a corresponding value. |
else | any | ✗ No | The value to be returned if no conditionals evaluate to True. If not specified, a Null result is returned by default. |
If([size] < 3, "small", [size] < 6, "medium", "large")
If([revenue] - [cost] > 0, "profit", "loss")