[TYPO3-dev] missing operator for constants

Ernesto Baschny [cron IT] ernst at cron-it.de
Tue Oct 28 09:57:47 CET 2008


Steffen Kamper wrote: on 28.10.2008 09:50:

> i truly miss an operator for the conditions: !=
> Building such condition is a bit complicate, like:
> Match all if type != 135:
> 
> [globalVar = GP:type = 135]
> [else]
> ....
> [end]
> 
> would be much easier if this would be possible:
> 
> [globalVar = GP:type = !=135]
> ....
> [end]

That is an ugly syntax? :) Why not:

[globalVar = GP:type!=135]
....
[end]

Currently supported operators are "=", ">" and "<". Just go ahead and
add your own (patch to core, class.t3lib_matchcondition.php function
evalConditionStr()).

Cheers,
Ernesto




More information about the TYPO3-dev mailing list