What about to compare a value (or regex) against a string or list of string #100
Unanswered
nicolas-rdgs
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I would recommend normalizing the data and addressing this problem directly. Otherwise you'd need some way to do type checks (which I don't think I support now) and then use some complex list comprehension with conditionals in it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Output:
In our case, we cannot predict if the value of
key
could be a string or list of string in advance and we getdata type mismatch
error despite we combine with array comprehension in the rule.If we want to manage both cases, string and a list of strings, what's the best approach or what do you think?
Beta Was this translation helpful? Give feedback.
All reactions