I am trying to control what is displayed in a table view based on a conditional.
Here is the code I am trying to use:
<tr class="odd">
<td>Small</td>
<td>1000x600</td>
<td>$25</td>
</tr>
<tr class="even">
<td>Medium</td>
<td>2000 x 1300</td>
<td>$50</td>
</tr>
{if max_dimensions != '1536 x 2048' OR max_dimensions != '2048 x 1536' }
<tr class="odd">
<td>Large</td>
<td>3000 x 2003</td>
<td>$75</td>
</tr>
{/if}
In this case if the max_dimensions of a photograph is not '1536 x 2048' or '2048 x 1536' I want the third row of data to be displayed.
I limited it to just one conditional as follows and it worked. However when I add the OR, it fails.
{if max_dimensions != '1536 x 2048' }
<tr class="odd">
<td>Large</td>
<td>3000 x 2003</td>
<td>$75</td>
</tr>
{/if}
That basic objective is, if the picture is not big enough, I don't want the third row to be displayed. What is the correct way to word this?
Thanks.