Forum Discussion
Liquid logic - using a conditional within forloop
- 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.
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.
- mylinhp2 years agoActive Member II
hi bob, thanks so much! that was a good callout - solution was to treat it as a string instead of a number. that solved it.
Related Content
- 6 months ago