Re: [if]
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 49696
interpreted = N
texte = This line[if ([category] = notecards) | [category] = xmas)]Should be[if ([category]=notecards)|([category]=xmas)]I also don't have spaces in the comparison area - not sure if you can havethem or not ?Heres the whole thing tidied ..[text show=t]category=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]Alain> 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 line[if ([category] = notecards) | [category] = xmas)]Should be[if ([category]=notecards)|([category]=xmas)]I also don't have spaces in the comparison area - not sure if you can havethem or not ?Heres the whole thing tidied ..[text show=t]category=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]Alain> 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/
Alain Russell
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:
WebCatalog stalls (1998)
Code database (1998)
WebCat virtual postcard is done! Thanks for the help! (1998)
Bug or syntax error on my part? (1997)
Another question (1997)
newbies to web, spaces in email address (1998)
Re[2]: Re[2]: Re[2]: OT: Amazon Patents (2000)
Replace context problem ... and answers (1997)
system crashes, event log (1997)
intel webdna? (2007)
WebCat editing, SiteGuard & SiteEdit (1997)
2nd WebCatalog2 Feature Request (1996)
showif and cart (1997)
startat param not working (2008)
WebCat2 beta 11 - new prefs ... (1997)
normal users.db calls ... (1998)
[OT] DOD again (2003)
Date Question (2002)
Separate SSL Server (1997)
Hiding a subsection of text (2002)