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:
    <option option_id="URR_r1_pri" edit_format="spinbox" data_type="integer" can_backup="1">
          <relation group_id="derp" display_order="110"/>
    Here is the template:
    <xen:if is="{$xenOptions.URR_r1_pri} > {$xenOptions.URR_r2_pri} OR {$xenOptions.URR_r3_pri}">
    <xen:elseif is="{$xenOptions.URR_r2_pri} > {$xenOptions.URR_r1_pri} OR {$xenOptions.URR_r3_pri}" />
    <xen:else />

    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