The trouble I have using JSONata once a year is that I can never work out the syntax required
msg.random contains number 0..2
How can I pick out the corresponding colour from the array?
Currently getting undefined
The trouble I have using JSONata once a year is that I can never work out the syntax required
msg.random contains number 0..2
How can I pick out the corresponding colour from the array?
Currently getting undefined
Try [1,2,3][$$.random]
Thank you
I MUST TRY TO REMEMBER ABOUT $$. !!!!
I have taken to using $$ when referencing msg properties, as a fail safe to what ever scope the expression is in.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.