1. 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

Discussion in 'XenForo Development Discussions' started by Daniel 'RTRD', Jan 2, 2013.

  1. Daniel 'RTRD'

    Daniel 'RTRD' Well-Known Member

    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?
     

Share This Page