Forum

Thread tagged as: Question, Problem, Configuration

Comparing ID values using

How can I compare two ID's to see if they match using <perch:if>?

I'm getting a value from a query string PerchSystem::set_var('myitem', $item); so $myitem is available in the template.

And I want to compare

id="myitem" is equal to id="title'

David Owen

David Owen 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

<perch:if id="myitem" match="eq" value="{title}">
   ...
</perch:if>

Thank you!

How do I add to ignore case?

Drew McLellan

Drew McLellan 2638 points
Perch Support

format="LC" format-both="true"