I'm trying to compare the value of what I'm displaying in order to change the word in front of it in the View ID 7713.
What I'm displaying is : item="@ski-station-property.parent"
I need to make a conditional display following this item as the value "Deux Alpes" or not.
Can you please help me to find out the way to achieve this ?
What field are you displaying with that item attribute, and how? Using a shortcode?
You should be able to use a conditional shortcode where you test the output of that shortcode, e.g. assuming your are checking the post title of the parent post it would be something like this:
Another question. Is there like in the past with the basic programming "if, then, else" a way to do the ELSE ?
Actually I need to have
IF
condition 1 or condition 2 or condition 3... THEN
ELSE do something else.
in my case
if item='@ski-station-property.parent'] eq 'Deux Alpes' OR item='@ski-station-property.parent'] eq 'Les Gets'
then display Content template 1