[TYPO3-dev] missing operator for constants
Martin Kutschker
masi-no at spam-typo3.org
Tue Oct 28 10:08:40 CET 2008
Ernesto Baschny [cron IT] schrieb:
> 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? :)
Incredibly ugly ;)
> 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()).
How about >= and <= as well?
Masi
PS: The most ugly part is the first = right after globalVar.
More information about the TYPO3-dev
mailing list