Hi all,
I am just having a couple of problems with a If / Else Statement comparing two values. I am unsure whether this is correct, or even possible. Any help would be greatly appreciated.
I am just having a couple of problems with a If / Else Statement comparing two values. I am unsure whether this is correct, or even possible. Any help would be greatly appreciated.
- Code: Select all
<thead> <tr> <cms:set winter_open = "<cms:date winter_opening_time format='g.ia' />"/> <cms:set summer_open = "<cms:date summer_opening_time format='g.ia' />"/> <cms:set winter_closed = "<cms:date winter_closing_time format='g.ia' />"/> <cms:set summer_closed = "<cms:date summer_closing_time format='g.ia' />"/> <cms:if winter_open eq summer_open && winter_closed eq summer_closed> <th> </th> <th>All times</th> <cms:else/> <th> </th> <th>Winter times</th> <th>Summer times</th> </cms:if> </tr> </thead>