Forum

Thread tagged as: Problem, Runway

gt and gte match giving fits in Runway 2.8.13

Drew, I have been fussing all day with perch:if and have found there seems to be a problem with...

<perch:if id="perch_item_count" match="gt" value"3">do something</perch:if>

<perch:if id="perch_item_count" match="gte" value"3">do something</perch:if>

Both keep evaluating true no matter what the value of perch_item_count is, but...

<perch:if id="perch_item_count" match="eq" value="3">do something</perch:if>

works perfectly. Can you test this in your environment. Thanks so much.

Robert Ketter

Robert Ketter 103 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You need to use value="3" in place of value"3".

Drew McLellan said:

You need to use value="3" in place of value"3".

Sorry Drew, This was a mis-type in the forum, not in the actual template.

The problem still exists...

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, no problem. I'll run some tests on it next week.

Drew McLellan said:

Ok, no problem. I'll run some tests on it next week.

I have currently used the following as a work around, but it would be best to do it right...

<perch:if id="perch_item_count" match="between" value="3,100">do something</perch:if>

Drew, I just looked at my template again, boy do I feel dumb... My mis-type was not limited to my example as I thought. It was wrong in my template too.

Sorry, Please forgive me.. :) Everything's fine now.