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
As you can see above, I'd like to deal with cases where someone using that function passes numbers (e.g. [3, 4]) or string representation of the version (["3.0", "4.0"]) in the versions list.
Though when running that simple code I get the error below:
Invalid expression; function "list" does not exist: undefined
I've tried with more simple types and get the same error (e.g. convert("true", bool))
I would have expected that to work given the bake Reference states:
Not sure whether that's a problem with me or a bug but here is what I'm trying to do:
I wrote a function in my bake file to compute a list of targets based on an whether an env var (
MY_ VERSION
) matches a list ofversions
:As you can see above, I'd like to deal with cases where someone using that function passes numbers (e.g.
[3, 4]
) or string representation of the version (["3.0", "4.0"]
) in theversions
list.Though when running that simple code I get the error below:
I've tried with more simple types and get the same error (e.g.
convert("true", bool)
)I would have expected that to work given the bake Reference states:
The text was updated successfully, but these errors were encountered: