Hello Losant Team
I want to know if it is possible to use context variable in condiontal gauger. For example:
{{value}} < {{ctx.alarmLevelWater}}
I was reading the documentation but I can’t find the answer.
Thanks!
Hello Losant Team
I want to know if it is possible to use context variable in condiontal gauger. For example:
{{value}} < {{ctx.alarmLevelWater}}
I was reading the documentation but I can’t find the answer.
Thanks!
You should be able to, assuming alarmLevelWater
is a number-type context variable.
See attached; here, maxValue
is a number variable with a current value of 0
. Is there a place where you tried to use a variable like this and it did not work? Please let us know if so.
Thanks for the Reply Dylan.
I have this but doens’t works. Look
Any idea? Thanks again!
There are lots of unknowns here -
{{value}}
?{{value}}
used in the conditions for changing the gauge’s color will be the result of that expression, not the raw value returned by your query (as it is when defining the data transformation expression).{{ctx.Offset}}
?{{ctx.Coef}}
?Yes, i’m applying a data Transformation
Now i understand, i thought that {{value}} always represent the raw value returned by my query.
Thanks Dylan the problem was that. i appreciate your reply
Glad to hear we figured it out. I’m going to file a ticket to clarify that {{value}}
is the result of the expression because of the confusion. Please let us know if you have any other questions!
Thank Dylan! I don’t have other question. Have a nice day