[TYPO3-dev] relaease plans for typoe 4.2?

JoH asenau info at cybercraft.de
Tue May 8 12:25:01 CEST 2007


>>> if($some_value>1 || $some_value<10) { $object->render=true; }
>
>> On T3DD07 something like this has been suggested:
>>
>> object.property.if = {$val1} > 1 or {$val2} < 10
>
> Please compare your "solution" to PHP above. You are reinventing the
> wheel.
>
> Plus you will have to implement syntax and error checking, which
> doesn't exist.
>
> Plus it will be always slower than native PHP.

BTW the example you have been using is wrong:

object.stdWrap.if {
  value.data = some_value
  isLessThan = 1
  isGreaterThan = 10
 }

is not:
if($some_value>1 || $some_value<10) { $object->render=true; }
but
if($some_value>1 && $some_value<10) { $object->render=true; }
instead.

SCNR

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com






More information about the TYPO3-dev mailing list