Digi92
11/2/2017 - 8:54 AM

TypoScript If with "AND"

Example for an "AND"-If in TypoScript

// Add language parameter on shortcuts when the field tx_shortcut_language is not null
3.IFSUB.additionalParams = &L={field:tx_shortcut_language}
3.IFSUB.additionalParams.insertData = 1
3.IFSUB.additionalParams.if {
    value = 4
    equals.field = doktype
}
3.IFSUB.additionalParams.if.isTrue = 1
3.IFSUB.additionalParams.if.isTrue.if {
    value = -1
    isGreaterThan.field = tx_shortcut_language
}