[TYPO3-dev] typoscript check if get variable is bigger than 0
Dmitry Dulepov
dmitry.dulepov at gmail.com
Tue Dec 2 13:33:52 CET 2008
Hi!
Brian Bendtsen wrote:
> I need to check if a GET variable has been set.
>
> I have tried this:
>
> [globalVar = _GET|tx_myextension_pi1|somevariable > 0]
> method = get
> [ELSE]
> method = post
> [END]
>
> But that doesn't work
>
> Any hints?
Docs tell you how. Here:
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/4/1/#id3973274
===================
...In order to get those values for comparison with “globalVar” and
“globalString” conditions, you prefix that varname with either
"IENV"/“ENV:” , “GP:”, “TSFE:” or “LIT:”...
===================
Do you see "_GET" there?
Follow the docs and everything will work. Do not invent your own
properties...
--
Dmitry Dulepov
TYPO3 translations support
In the blog:
http://typo3bloke.net/post-details/my_mozilla_thunderbird_addon/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
More information about the TYPO3-dev
mailing list