Introducing the indicator dashboard block, Losant API workflow node, and workflow-to-workflow triggers


#1

Some awesome new features released today! Details on the blog: https://www.losant.com/blog/introducing-indicator-block-api-node-workflow-triggers


#2

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.


#3

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:


#4

Just tried that and unfortunately I’m seeing the same issue.


#5

Turns out it was indeed a falsy issue … of my own doing. :slight_smile:

We just deployed a fix for your case. Please let me know if it’s resolved.


#6

Easy enough. It’s working great for me now. Cool feature. Thanks for the fix. :+1: