Some awesome new features released today! Details on the blog: https://www.losant.com/blog/introducing-indicator-block-api-node-workflow-triggers
I’m having an issue with the Indicator block. I have a value, which is a number. I have 2 conditions:
{{value}} == 1
{{value}} == 0
The value = 1 condition works and shows the correct text.
The value = 0 condition does not work and shows the Default Condition text.
What am I doing wrong?
Thanks,
Dillon
Edit: It appears that my {{value}} is undefined when it goes into the default condition block. I’m using a Number Gauge with the same data and it shows a 0. Not sure what’s going on.
I haven’t looked at your workflow but this sounds like a classic JavaScript “falsy” trap.
Try switching the “==” in each expression to “===” and see if that resolves the issue.
More info on falsy values:
Just tried that and unfortunately I’m seeing the same issue.
Turns out it was indeed a falsy issue … of my own doing.
We just deployed a fix for your case. Please let me know if it’s resolved.
Easy enough. It’s working great for me now. Cool feature. Thanks for the fix.