Re: [if]
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 49701
interpreted = N
texte = now i see.....sorry...thank you.... Alain and Tim....On Wed, 23 Apr 2003, Alain Russell wrote:> 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 have> them 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/>-------------------------------------------------------------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:
now i see.....sorry...thank you.... Alain and Tim....On Wed, 23 Apr 2003, Alain Russell wrote:> 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 have> them 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/>-------------------------------------------------------------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:
purchase plugin (1996)
[WebDNA] HTML Symbol Entities (2009)
WebDNA 5.1 and Mac OS X Server v10.3 - Working ??? (2003)
WebDNA 5 - Function test weirdness or ? (2003)
Security problems (2000)
Search in 2 or more catalogs (1997)
Applying discounts as more items are added... (1997)
Answer: WebDelivery downloads alias, not original ? (1997)
type 2 errors with ssl server (1997)
[WebDNA] Product Search Algorithm (2013)
WebCat2b15MacPlugin - showing [math] (1997)
re: How can I record purchases to a database? (1998)
Review comparison by PC Magazine: Open for On-line Business (1997)
AppleScript question (1997)
Re[2]: Enhancement Request for WebCatalog-NT (1996)
4.0 image uploading /features (2000)
Listfiles and nothing found (2001)
Incorrect Store Totals (2005)
More on the email templates (1997)
PSC recommends what date format yr 2000??? (1997)