Re: [if]
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 49698
interpreted = N
texte = this smells like a bug in the [if] tag...the [case] tag bellow works fine....[text show=t]category=notecard boxes[/text][Switch value=[category]][Case value=postcards][Text]TargetPath=/wholesale/postcards/small_optimized/[/Text][/Case][Case value=notecards][Text]TargetPath=/wholesale/postcards/sm_optim_nc/[/Text][/Case][Case value=xmas][Text]TargetPath=/wholesale/postcards/sm_optim_nc/[/Text][/Case][Default][Text]TargetPath=/wholesale/midszimg/[/Text][/Default][/Switch]On Tue, 22 Apr 2003, Kalin Mintchev wrote:> On Wed, 23 Apr 2003, Alain Russell wrote:>> > There are a bunch of typos in the code - the first variable declaration - m,> > missing brackets etc .. Fix those and it will probably work.>> yea, sorry - the declaration was wrong only on the email - i was typing it> instead of copying... which brackets are missing?! where?>> >> > >> > > hi all,> > >> > > can somebody please explain why after running the code bellow i get> > >> > > TargetPath=/wholesale/postcards/sm_optim_nc/> > >> > > thanks...> > >> > >> > >> > > [text show=t]categpry=notecard boxes[/text]> > >> > >> > > [if ([category] = postcards)]> > >> > > [then]> > > [Text]TargetPath=/wholesale/postcards/small_optimized/[/Text]> > > [/then]> > >> > >> > > [else]> > > [if ([category] = notecards) | [category] = xmas)]> > > [then]> > >> > > [Text]TargetPath=/wholesale/postcards/sm_optim_nc/[/Text]> > > [/then]> > >> > > [else]> > >> > > [Text]TargetPath=/wholesale/midszimg/[/Text]> > > [/else]> > > [/if]> > >> > > [/else]> > >> > > [/if]> > >> > >> > > -------------------------------------------------------------> > > This message is sent to you because you are subscribed to> > > the mailing list
.> > > To unsubscribe, E-mail to: > > > To switch to the DIGEST mode, E-mail to> > > > > > Web Archive of this list is at: http://webdna.smithmicro.com/> >> >> > -------------------------------------------------------------> > This message is sent to you because you are subscribed to> > the mailing list .> > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/> >>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
this smells like a bug in the [if] tag...the [case] tag bellow works fine....[text show=t]category=notecard boxes[/text][Switch value=[category]][Case value=postcards][text]TargetPath=/wholesale/postcards/small_optimized/[/Text][/Case][Case value=notecards][text]TargetPath=/wholesale/postcards/sm_optim_nc/[/Text][/Case][Case value=xmas][text]TargetPath=/wholesale/postcards/sm_optim_nc/[/Text][/Case][Default][text]TargetPath=/wholesale/midszimg/[/Text][/Default][/Switch]On Tue, 22 Apr 2003, Kalin Mintchev wrote:> On Wed, 23 Apr 2003, Alain Russell wrote:>> > There are a bunch of typos in the code - the first variable declaration - m,> > missing brackets etc .. Fix those and it will probably work.>> yea, sorry - the declaration was wrong only on the email - i was typing it> instead of copying... which brackets are missing?! where?>> >> > >> > > hi all,> > >> > > can somebody please explain why after running the code bellow i get> > >> > > TargetPath=/wholesale/postcards/sm_optim_nc/> > >> > > thanks...> > >> > >> > >> > > [text show=t]categpry=notecard boxes[/text]> > >> > >> > > [if ([category] = postcards)]> > >> > > [then]> > > [text]TargetPath=/wholesale/postcards/small_optimized/[/Text]> > > [/then]> > >> > >> > > [else]> > > [if ([category] = notecards) | [category] = xmas)]> > > [then]> > >> > > [text]TargetPath=/wholesale/postcards/sm_optim_nc/[/Text]> > > [/then]> > >> > > [else]> > >> > > [text]TargetPath=/wholesale/midszimg/[/Text]> > > [/else]> > > [/if]> > >> > > [/else]> > >> > > [/if]> > >> > >> > > -------------------------------------------------------------> > > This message is sent to you because you are subscribed to> > > the mailing list .> > > To unsubscribe, E-mail to: > > > To switch to the DIGEST mode, E-mail to> > > > > > Web Archive of this list is at: http://webdna.smithmicro.com/> >> >> > -------------------------------------------------------------> > This message is sent to you because you are subscribed to> > the mailing list .> > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/> >>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Kalin Mintchev
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Car Database (2002)
headers (2000)
Security Tip (1996)
Search minus first found (1999)
[append] and SSL (1997)
Time to opensource? was [SMSI] WebDNA is too good to (2006)
Logging purchases (1997)
error: Too many nested [xxx] contexts (1997)
syntax question, not in online refernce (1997)
Web Merchant process after credit card clears (1998)
RAM variables (1997)
[WebDNA] Email not going out, error 554 (2016)
WebCat2 as a chat server? (1997)
WebCat2 beta 11 - new prefs ... (1997)
WebDNA problems with Itools 7.3 Upgrade (2004)
CC verification (2001)
Passing Variable (was How to add product size) (1997)
expired beta (1997)
Make sure I understand this??? (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)