We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7327
    • 195 Posts
    Hi guys,

    I’ve come across another oddity here - if I use nested chunk-call conditions using the following:

    [[*id:eq=`1`:or:eq=`3`:then=``:else=`[[$chunk]]`]]
    [[*parent:eq=`1`:or:eq=`3`:then=``:else=`[[$chunk]]`]]


    INSIDE $chunk

    [[*id:eq=`4`:then=`[[$chunk_a]]`]]
    [[*parent:eq=`4`:then=`[[$chunk_b]]`]]

    The above isn’t the cleanest looking script to use, but in this scenario, if you have the above chunk with conditions, mdox won’t process both, unless you delete one of the lines. Retrieving the parent and id value doesn’t work with one or both of the above lines inside $chunk, but if you remove both of these, [[*parent]] and [[*id]] returns a number.

    If tried doing the following above:

    [[*id:neq=`1`:or:neq=`3`:then=`[[$chunk]]`]] and the result gives me a "`]]" with what else I’ve got there.

    Any thoughts? The solution I’ve got for the above is simply to call whatever I’ve got in the $chunk directly. If I were to get the above to work, am I missing something here? Thanks!

    Cheers,
    Les