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
I can honestly say I never considered this. The var operation casts its input to a String before using it this is especially to support sub-indexing (which is accomplished with String.split)
Does it meet your needs to use logic like {"var":"0.1"} {"var":"1.0"}
Using strings is indeed a solution. But on the example page numeric values are used for indexing arrays. So I'd thought I mention it here so you are aware.
logic:
{"var":0.1}
data:
["ab", "cd"]
evaluates to:
"b"
while
logic:
{"var":1.0}
data:
["ab", "cd"]
evaluates to:
"cd"
presumably because:
A solution would be to always round number, making sub-indexing impossible without strings.
The text was updated successfully, but these errors were encountered: