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:
POSTing to a secure server ... (2000)
WebCatalog can't find database (1997)
WebCat2b12 - nesting [tags] (1997)
WebCat2 beta 11 - new prefs ... (1997)
WebCat2 - [format thousands] (1997)
Web Catalog Instability (2000)
Navigator Parsing (1997)
WebCat2.0 [format thousands .0f] no go (1997)
Dummy Credit Card Number for debug? (1997)
SiteGuard Use Question (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Summing fields (1997)
Resume Catalog ? (1997)
Using Cookie for client specific info? (1997)
BUG REPORT: Delete context ignores max parameter (1998)
Formatting of email on NT (1998)
Date problems (1997)
Why don't Typhoon & Firesite work together? (and webcat) (1998)
search form problem.. (1997)
Artwork (1997)