[TYPO3-english] TScript Condition NOT operator?

Riccardo De Contardi riccardo.decontardi at bhuman.it
Thu Apr 14 09:26:03 CEST 2011


Isn't it possible to apply a sort of "negative" condition with:

[condition]
//empty
[else]
//other
[global]

? 


On 14/04/11 09.08, "Martin Mädler" <martin.maedler at rwth-aachen.de> wrote:

> Hello,
> 
> I haven't seen this documented anywhere, but I ran into a problem where
> I need a NOT operator in one of my conditions. Since it is not possible
> to nest conditions, I broke mine up into 3 seperate conditions. The
> logic should work like this:
> 
> [loginUser = 1] # if user 1 is logged in (IP not relevant)
>    temp.submenu.excludeUidList = 118
> [IP = 12.345] && [loginUser = !1] # if IP starts with 12.345 and no user
> is logged in
>    temp.submenu.excludeUidList = 97
> [else] # IP doesn't match and not logged in (there is only one fe-user)
>    temp.submenu.excludeUidList = 97, 118
> [global]
> 
> Do have an idea how I can solve this, am I missing something? When I
> just use [IP = 12.345] instead of [IP = 12.345] && [loginUser = !1], my
> menu is always missing item 97, even when logged in.
> 
> Thanks
> -Martin
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


--------------------------------------------
Riccardo De Contardi ­ Web Developer
B Human Srl - www.bhuman.it <http://www.bhuman.it>
Via Canzio, 15 - 20131 Milano
TEL +39-02-20.23.271 - FAX +39-02-20.240.561
--------------------------------------------
    


**************************************************

Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.




More information about the TYPO3-english mailing list