You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: clarify DFG-only features in expressions reference, rename ToC entry
- Clarify ?? default syntax is DFG-only (not in data flow builtInTransformation)
- Remove misleading 'and no last known value is available' from ?? description
- Add evaluation order example for ?? without ? $last
- Add footnotes to feature support table for DFG-only items (regex, ??)
- Rename ToC entry from 'Expressions' to 'Expressions reference'
Copy file name to clipboardExpand all lines: articles/iot-operations/connect-to-cloud/concept-dataflow-graphs-expressions.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: sethm
6
6
ms.service: azure-iot-operations
7
7
ms.subservice: azure-data-flows
8
8
ms.topic: reference
9
-
ms.date: 03/19/2026
9
+
ms.date: 03/26/2026
10
10
ai-usage: ai-assisted
11
11
12
12
---
@@ -212,7 +212,10 @@ Last known value is supported in map, filter, and branch rules. It isn't availab
212
212
213
213
## Default values
214
214
215
-
Use the `?? <default>` suffix on an input to provide a fallback value when the field is missing and no last known value is available. Supported default types: integer, float, boolean, string, and null.
215
+
Use the `?? <default>` suffix on an input to provide a fallback value when the field is missing. Supported default types: integer, float, boolean, string, and null.
216
+
217
+
> [!NOTE]
218
+
> The `?? <default>` syntax is available in data flow graphs only. It isn't supported in data flow `builtInTransformation` inputs.
216
219
217
220
| Input | Fallback |
218
221
|-------|----------|
@@ -223,11 +226,12 @@ Use the `?? <default>` suffix on an input to provide a fallback value when the f
223
226
224
227
### Combine last known value and default
225
228
226
-
You can combine `? $last` and `?? <default>`. The runtime checks the current message first, then the last known value, then the default.
229
+
You can combine `? $last` and `?? <default>`. The runtime checks the current message first, then the last known value, then the default. If you use `?? <default>` without `? $last`, the runtime checks the current message and then the default directly.
227
230
228
231
| Input | Evaluation order |
229
232
|-------|-----------------|
230
-
|`temperature ? $last ?? 0`| Current value, then last known, then 0 |
233
+
|`temperature ?? 0`| Current value, then default (0) |
234
+
|`temperature ? $last ?? 0`| Current value, then last known, then default (0) |
231
235
232
236
Default values are supported in map, filter, and branch rules. They aren't available in window (accumulate) rules.
233
237
@@ -256,9 +260,12 @@ JSON objects and arrays are preserved as-is when fields are copied without an ex
0 commit comments