[TYPO3-project-4-3] Variation for TypoScript "if"

JoH asenau info at cybercraft.de
Wed Jun 10 13:23:22 CEST 2009


> if.value = 1
> if.isLessThan = 4
> if.and.not.isLessThan = 2
> if.or.equals = 2

And maybe this can be made even more clearly by using another notation:

if {
    value = 1
    isLessThan = 4
    and {
        not.isLessThan = 2
    }
   or {
        equals = 2
    }
}


Could be nested as well:

if {
    value = 1
    isLessThan = 4
    and {
        isLessThan = 2
        or {
            isInList = 1,2,3
        }
    }
   or {
        equals = 2
        and {
            isGreaterThan = 1
        }
    }
}

What do you think?

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
TYPO3 workshops: http://workshops.eqony.com




More information about the TYPO3-project-4-3 mailing list