Forum Discussion
mylinhp
2 years agoActive Member II
Liquid logic - using a conditional within forloop
Hi all! I'm running into an issue where my liquid logic is breaking my email... not sure if i'm doing something wrong or if what i'm trying to do isn't possible...
I'm trying to use a conditional w...
- 2 years ago
It looks like it should work.
I'd be very interested to see if the item.metric value is always present and of the type you're expecting it to be.
I also have some vague memory of some operators (maybe '>', not sure) being very sensitive to whitespace around them. Do make sure you have all the spaces in your actual liquid as you do here.
Max
2 years agoSpecialist
Hey mylinhp,
can you give some details about the array? Do you have an array of objects in your event properties? What exact you want to achieve?
This would help to give you a better answer to your problem 🙂 .
- mylinhp2 years agoActive Member II
Hi Max! thanks for checking in. i was able to find a solution from bob's reply above. solution was to treat it as a string instead of a number. thanks!
Related Content
- 6 months ago