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

Tyler Kraft tyler.kraft at netefficiency.co.uk
Tue Jun 9 22:51:15 CEST 2009


+1

Dan Osipov wrote:
> I think that's still as confusing as the current version.
> 
> Dan Osipov
> Calkins Media
> http://danosipov.com/blog/
> 
> Martin Kutschker wrote:
>> Hi!
>>
>> Here follows the syntaxt for a sane version of "if":
>>
>> if = <COMPARISON>
>> if.not = <boolean>
>>
>> if = AND | OR
>> if.10 =
>> if.20 =
>> etc
>>
>> if = EQUAL | GREATER | GREATEROREQUAL | LESS | LESSOREQUAL
>> if.value =
>> if.comparand =
>>
>> if = BEGINS / CONTAINS / ENDS / MATCHES
>> if.value =
>> if.needle =
>> if.caseSensitive = <boolean>
>>
>> # matches empty string and digit 0
>> if = EMPTY
>> if.value =
>>
>> # matches empty string
>> if = BLANK
>> if.value =
>>
>> # matches digit 0 (same as EQUAL/comparand=0)
>> if = ZERO
>> if.value =
>>
>> Masi


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