[TYPO3-english] TScript Condition NOT operator?

Martin Mädler martin.maedler at rwth-aachen.de
Thu Apr 14 09:08:25 CEST 2011


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


More information about the TYPO3-english mailing list