I want to use two global variables {trip_time} and {luggage_limit} inside an if statement. The aim is if the weblog field ‘passes_triptime’ contains certain text - eg “1 Day” display the luggage limit else leave it out. I use global variables for my different language modules.
It works okay if I put in the text
{if "{passes_triptime}” <> “1 Day”}
{passes_luggage_limit}
{/if}
but when I use the global variable {trip_time} with a value of “1 Day” it does not work.
{if "{passes_triptime}” <> {trip_time}}
{passes_luggage_limit}
{/if}
It prints out }15Kg luggage limit instead of leaving blank for 1 Day trips. I have tried using quotes around global variables but still no good.
I am using latest version of EE 1.6.0.
Thanks