Filter
Last updated
Was this helpful?
Was this helpful?
{
"temperature": 92.5,
"unit": "°C"
}x.temperature > 90"System Error: PLC Communication Timeout"x.includes('Error')[]x.length > 0I am working in Heisenware, a node-based visual programming tool for industrial applications.
I need a "Filter" expression that acts as a conditional gate in a flow.
Full documentation: https://docs.heisenware.com/app-builder/build-backend/extension-nodes/filter.md
Rules:
* A filter is a single JavaScript expression that must return true or false. JSONata is not supported here.
* The input data is referenced as x.
* If the result is falsy, the flow halts at the filter.
* No statements or variable declarations. For multi-step logic, use an IIFE: (() => { ... })().
* Reply with the expression only, no explanation, no markdown fences.
My input data (sample):
[Paste a sample of the data arriving at the filter here.]
My task:
[Describe your condition, e.g., "Only continue if pressure is between 2.0 and 4.5 bar."]