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:

    
  1. Re: [BULK] Re: [WebDNA] [if] or [case] or something else ("Brian B. Burton" 2012)
  2. RE: [BULK] Re: [WebDNA] [if] or [case] or something else ("Terry Nair" 2012)
  3. Re: [BULK] Re: [WebDNA] [if] or [case] or something else ("Brian B. Burton" 2012)
  4. RE: [BULK] Re: [WebDNA] [if] or [case] or something else ("Terry Nair" 2012)
  5. Re: [BULK] Re: [WebDNA] [if] or [case] or something else (Steve Craig 2012)
  6. [BULK] Re: [WebDNA] [if] or [case] or something else ("Brian B. Burton" 2012)
  7. Re: [WebDNA] [if] or [case] or something else (Christer Olsson 2012)
  8. Re: [WebDNA] [if] or [case] or something else (Steve Craig 2012)
  9. Re: [WebDNA] [if] or [case] or something else (Christer Olsson 2012)
  10. Re: [WebDNA] [if] or [case] or something else (Steve Craig 2012)
  11. Re: [WebDNA] [if] or [case] or something else (Brian Fries 2012)
  12. [WebDNA] [if] or [case] or something else (Steve Craig 2012)
  13. Re: [WebDNA] [IF] comparing numeric values - FIGURED OUT (Steve Raslevich 2010)
  14. [WebDNA] [IF] comparing numeric values (Steve Raslevich 2010)
  15. Re: [if] (Kalin Mintchev 2003)
  16. Re: [if] (Tim Robinson 2003)
  17. Re: [if] (Kalin Mintchev 2003)
  18. Re: [if] (Kalin Mintchev 2003)
  19. Re: [if] (Alain Russell 2003)
  20. Re: [if] (Tim Robinson 2003)
  21. Re: [if] (Kalin Mintchev 2003)
  22. Re: [if] (Alain Russell 2003)
  23. [if] (Kalin Mintchev 2003)
  24. {Comparisons} in [showif] vs. [if] Bug? Inconsistency? (Rob Marquardt 2002)
  25. Re: [if] and [showif] - A solution (Brian Fries 2002)
  26. Re: [if] and [showif] - A solution (Donovan Brooke 2002)
  27. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  28. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  29. Re: [if] and [showif] (Andrew Simpson 2002)
  30. Re: [if] and [showif] (Pedro Rivera 2002)
  31. Re: [if] and [showif] (Donovan 2002)
  32. Re: [if] and [showif] (Donovan 2002)
  33. Re: [if] and [showif] - A solution (Rob Marquardt 2002)
  34. Re: [if] and [showif] - A solution (Donovan 2002)
  35. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  36. Re: [if] and [showif] - A solution (John Peacock 2002)
  37. Re: [if] and [showif] - A solution (Grant Hulbert 2002)
  38. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  39. Re: [if] and [showif] (Mark Derrick 2002)
  40. Re: [if] and [showif] (Dan Strong 2002)
  41. Re: [if] and [showif] (Alex McCombie 2002)
  42. Re: [if] and [showif] (Dan Strong 2002)
  43. Re: [if] and [showif] (Mark Derrick 2002)
  44. Re: [if] and [showif] (Daryl Mitchell 2002)
  45. Re: [if] and [showif] (Dan Strong 2002)
  46. Re: [if] and [showif] (Mark Derrick 2002)
  47. Re: [if] and [showif] (Dan Strong 2002)
  48. Re: [if] and [showif] (Mark Derrick 2002)
  49. Re: [if] and [showif] (Mark Derrick 2002)
  50. Re: [if] and [showif] (Gary Krockover 2002)
  51. [if] and [showif] (Mark Derrick 2002)
  52. Re: New [If] command question + New Feature Request (John Peacock 2000)
  53. Re: New [If] command question + New Feature Request (WebDNA Support 2000)
  54. Re: New [If] command question + New Feature Request (John Peacock 2000)
  55. Re: New [If] command question (WebDNA Support 2000)
  56. New [If] command question (John Peacock 2000)
  57. Re: [if][/if] weirdness (Charles Kline 2000)
  58. Re: [if][/if] weirdness (GHulbert@smithmicro.com 2000)
  59. [if][/if] weirdness (Charles Kline 2000)
  60. [if] ( This)
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:

[SHOWIF]s and empty arguments (1997) NT b19 sends extra MIME headers (1997) What am I missing (1997) Virtual hosting and webcatNT (1997) WebCat2b12plugin - [search] is broken ... not! (1997) Upgrading old WebCat Database Files (1997) Execute Applescript (1997) Associative lookup style? (1997) Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (2011) CloseDataBase vs CommitDataBase (2007) WCS Newbie question (1997) Transferring [cart] to Database (1997) database files in secure folder (1997) Showing unopened cart (1997) search results through frames (2000) Clearing cart headers (2000) Charting records by state (2000) Emailer port change (1997) Date format problems (1997)