[TYPO3-english] Condition to know if a variable is defined in the URL

Enrique Moreno Tent enriquemorenotent at gmail.com
Mon Mar 7 14:14:00 CET 2011


Yes. I have to go with the first option. It works ok, but it means I cant
give them negative values. still it works :)

I know its a little off-topic with the subject but, how can I set the value
of the variable to a TEXT object? value.data = ???

On Mon, Mar 7, 2011 at 12:05 PM, Marco Peemöller <listen at goto-marco.de>wrote:

> Hello,
>
> Am 07.03.2011 12:55, schrieb Enrique Moreno Tent:
>
> > Can someone please tell me what condition should I use if i want to know
> if
> > a variable has been defined in the URL? I thiught it was something like
> > this:
> >
> > [globalVar = GP:myVar = 0]
> >
>
> Try this:
>
> [globalVar = GP:myVar > 0 ]
> #GP:myVar defined
> [ELSE]
> #GP:myVar not defined
> [global]
>
> maybe this work to, but i am not sure
>
> [globalVar = GP:myVar = ]
> #GP:myVar defined
> [global]
>
> Regards
>
> Marco
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list