• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Show highest number with xen:if

Daniel 'RTRD'

Well-known member
#1
Here is the option:
Code:
<option option_id="URR_r1_pri" edit_format="spinbox" data_type="integer" can_backup="1">
      <default_value>10</default_value>
      <edit_format_params>min=0</edit_format_params>
      <sub_options></sub_options>
      <relation group_id="derp" display_order="110"/>
    </option>
Here is the template:
Code:
<xen:if is="{$xenOptions.URR_r1_pri} > {$xenOptions.URR_r2_pri} OR {$xenOptions.URR_r3_pri}">
 
CONTENT
 
<xen:elseif is="{$xenOptions.URR_r2_pri} > {$xenOptions.URR_r1_pri} OR {$xenOptions.URR_r3_pri}" />
 
CONTENT
 
<xen:else />
 
</xen:if>

I can't get that to work. I want the one with the largest number to show. And as it is setup now URR_r1_pri has 10 and URR_r2_pri has 20 as default. Am I doing something wrong?