[TYPO3-project-4-3] Variation for TypoScript "if"
Martin Kutschker
masi-no at spam-typo3.org
Thu Jun 11 12:52:06 CEST 2009
JoH asenau schrieb:
>> 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?
a) Who wants to make all this comparisons to a single value? "1" in your
example.
b) Using a COA-like notation (as I have suggested) makes it easier to
add new clauses later on.
Masi
More information about the TYPO3-project-4-3
mailing list