Forum

Thread tagged as: Question, Events

Calendar conditional

Hi, on the events calendar, how do specify a conditional to show something when not on the current month's calendar. I tried this:

<perch:if id="current_month" != "selected_month"> Show this </perch:if>

James Curran

James Curran 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The syntax for Perch Conditionals is detailed here - see filter, match and value.

https://docs.grabaperch.com/docs/templates/conditionals/if/

Thanks Rachel the guide really helped. :-)

After trial and error I realised it wasn't working because the value wasn't wrapped in {braces}.