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

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Jun 10 00:16:54 CEST 2009


Hi,

maybe some more usual way of expressing a condition would fit better the
understanding?

if = $a > $b
if.a =
if.b =

if = ( $a AND $b ) OR ( $c and $d )
if.a =
if.b =
if.c =
if.d =

And also having some basic functions:

if = CONTAINS($a, "xyz")
if.a = ...

etc. Even if it doesn't look too TypoScript'ish, it might look more
intuitive for people trying to figure it out.

Cheers,
Ernesto

Martin Kutschker wrote: on 09.06.2009 18:21:

> 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