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

XF 1.5 IF x AND y in TMS

Discussion in 'XenForo Questions and Support' started by mcatze, Jul 15, 2015.

  1. mcatze

    mcatze Well-Known Member

    I try to make an template modification with some conditional statements. But this is not the normal way like <xen:if is=""></xen:if>

    It is in classes or data in the templates (i don't know how to explain), like..
    {xen:if {$xenOptions.itm_ctSSB_enable_sharePage.ctSSB_Info}, ',&quot;info&quot;'}
    This one is ok, but i need another condition. It should look like..
    {xen:if {$xenOptions.itm_ctSSB_enable_sharePage.ctSSB_Info} AND {$xenOptions.itm_ctSSB_infoURL}, ',&quot;info&quot;'}
    And this does not work ..

    Can anyone help me find the mistake?
  2. Chris D

    Chris D XenForo Developer Staff Member

    {xen:if '{$xenOptions.itm_ctSSB_enable_sharePage.ctSSB_Info} AND {$xenOptions.itm_ctSSB_infoURL}', ',&quot;info&quot;'}
    mcatze likes this.
  3. mcatze

    mcatze Well-Known Member

    Great, thanks @Chris D .. so simple .. :D

Share This Page