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
IIRC I spoke about this with Matt Jibson years ago, and although I couldn't find the ticket, I think it has always been an unresolved issue
basically when you have something like this in your template {{else if lt $v.Value $.Alert.Vars.b }} you're bound to get error calling lt: incompatible types for comparison
no matter whether you define $b as 60 or 60.0, v.Value is a number obtained from streak(), printf says the type is expr.Number, whereas $b has type string.
notably if you replace $.Alert.Vars.b with 60.0 it works fine
The text was updated successfully, but these errors were encountered:
Dieterbe
changed the title
cannot use variables with lt/gt/eq ?
number variables from alert are typed string and cannot be used in templates with lt/gt/eq ?
May 27, 2016
IIRC I spoke about this with Matt Jibson years ago, and although I couldn't find the ticket, I think it has always been an unresolved issue
basically when you have something like this in your template
{{else if lt $v.Value $.Alert.Vars.b }}
you're bound to geterror calling lt: incompatible types for comparison
no matter whether you define
$b
as 60 or 60.0, v.Value is a number obtained fromstreak()
, printf says the type is expr.Number, whereas $b has type string.notably if you replace
$.Alert.Vars.b
with 60.0 it works fineThe text was updated successfully, but these errors were encountered: