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

xen:set - possible to create arrays?

Discussion in 'XenForo Questions and Support' started by CyberAP, Nov 18, 2011.

  1. CyberAP

    CyberAP Well-Known Member

    Is it possible to create an array with <xen:set>?
     
  2. CyberAP

    CyberAP Well-Known Member

  3. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    CyberAP likes this.
  4. CyberAP

    CyberAP Well-Known Member

    Unfortnately I am not a coder and was searching for an easy way to do it :) But thanks for the help!
     
  5. CyberAP

    CyberAP Well-Known Member

    If anyone it still wondering it is possible to do, just do it like this:

    <xen:set var="prop.var1">1</xen:set>
    <xen:set var="prop.var2">2</xen:set>
    And you'll get an array 'prop' with two cells: var1 and var2
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  7. xfrocks

    xfrocks Well-Known Member

    <xen:set /> works great. Or if you just want to pass an array to some helper, you can use {xen:array} too.
     

Share This Page