Search code examples
if-statementmodxmodx-revolutionmodx-resourcesmodx-templates

Modx *id isnot =`` and isnot=`` not working


Hi can someone help me with the correct code for this statement because it is not working for me.

[[*id:isnot=`250` and isnot=`252`:then=`[[$qc-wrap]]`]]

Solution

  • You use wrong syntax, please fix as follows:

    [[*id:isnot='250':and:isnot='252':then='[[$qc-wrap]]']]
    

    Don't forget to replace ' with ` within this example