I have a json list, where on my page I generate dynamic children from this list, in each generated child I have a container where I want to change the fill color according to the ID key of each json, I add a conditional value, then in the if a condition and I access the key that I want to add the condition: ID, of each generated item, but now when I want to add the validation I must add another json, how can I validate if ID is equal to X number? I can only select one json, the id key of each item is a number, I want to add the validation of if, ID == 1, I add a color, otherwise another
add condition of a key to a json list
Troubleshooting
I create a function where I send the json, and return the value in number, that's the way I've done it
Yes
1