May 23
XL Cordemans 9.3: if a variable is not yet existing ?
May 23, 2016; 04:25
XL Cordemans
9.3: if a variable is not yet existing ?
I need to pass a value from one page to another AFTER the user has selected one. But the user can select this on any page he wants. Cookies can be used but the logic should also work if the client blocks the use of cookies. Therefore I planned to use variables and Session_addVar function for this.
However, before any selection has been done I need to know if a value has already been given to that variable, or not. In other words it is possible that there is no variable as there was no selection yet.
In 9.3 I do not understand yet how to work with a variable if it is not yet existing. I tried to use this:
[if( $Vname->size <= '0' )]... whatever text ....[/if]
or
[if( $Vname== '' )]... whatever value ....[/if]
However, in both cases it returns an error page saying that the variable Vname does not exist :) . It is however an error page and stops the flow of the rest of the page.
I can find a way around this i, but I was wondering if with lasso 9.3 there is a more direct way? Thanks
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
May 22
Steve Piercy - Website Builder Re: 9.3: if a variable is not yet existing ?
May 22, 2016; 21:50
Steve Piercy - Website Builder
Re: 9.3: if a variable is not yet existing ?
May 23
Jolle Carlestam Re: 9.3: if a variable is not yet existing ?
May 23, 2016; 08:58
Jolle Carlestam
Re: 9.3: if a variable is not yet existing ?
May 23
Ke Carlton Re: 9.3: if a variable is not yet existing ?
May 23, 2016; 07:30
Ke Carlton
Re: 9.3: if a variable is not yet existing ?
May 23
XL Cordemans Re: 9.3: if a variable is not yet existing ?
May 23, 2016; 23:02
XL Cordemans
Re: 9.3: if a variable is not yet existing ?