Adding a Condition around "no Results found"


(Nick Papadatos) #1

Matrix Version: 5.5.4

Hi Squiz folk,

scenario:
I have link/s to a single calendar event search asset that return results based on a search query:
But If there are no results found show an alternative message based on the search query which there would be two.

1: ?etype=value-1
2: ?etype=value-2

So I would I be correct to create a condition to show two separate messages based on the URL?

condition 1 = if its value-1 then show message for value-1
condition 2 = if its value-2 then show message for value-2

Possible? I’m sure :slight_smile:

Cheers
Nick


(Nick Papadatos) #2

Ok, I think I’ll answer my own question…

  %begin_globals_get_etype^eq:value-1%
     message for value 1
   %else_begin_globals_get_etype^eq:value-2%
     message for value 2
   %end_asset%