Re: Showif dates...

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45934
interpreted = N
texte = >Tim's version and my version of the same code brings a question to mind. > >I am of the mindset the you would need the math (like Tim used), but in the >WebDocs under the if statement it shows this as an example: > >[If (([username]=Grant) | ([grandTotal]<100)) & ({[date]}<{2/15/2000})] > >where the dates is between the {} but without the math context. Which is >correct?Turns out the [If] context is really just a disguised [math] context that evaluates to true/false, so the example is correct: the {} work just fine in this case because they really think they're inside a [math] context already. -- _______________________________________________________________________________ Grant Hulbert | Internet Software Architect | http://www.hulbertfamily.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: Showif dates... (Donovan Brooke 2002)
  2. Re: Showif dates... (Tim Robinson 2002)
  3. Re: Showif dates... (Grant Hulbert 2002)
  4. Re: Showif dates... (Inkblot Media 2002)
  5. Re: Showif dates... (Inkblot Media 2002)
  6. Re: Showif dates... (Inkblot Media 2002)
  7. Re: Showif dates... (Inkblot Media 2002)
  8. Re: Showif dates... (Tim Robinson 2002)
  9. Fwd: Showif dates... (Claude Gelinas 2002)
>Tim's version and my version of the same code brings a question to mind. > >I am of the mindset the you would need the math (like Tim used), but in the >WebDocs under the if statement it shows this as an example: > >[If (([username]=Grant) | ([grandTotal]<100)) & ({[date]}<{2/15/2000})] > >where the dates is between the {} but without the math context. Which is >correct?Turns out the [if] context is really just a disguised [math] context that evaluates to true/false, so the example is correct: the {} work just fine in this case because they really think they're inside a [math] context already. -- _______________________________________________________________________________ Grant Hulbert | Internet Software Architect | http://www.hulbertfamily.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/ Grant Hulbert

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:

Best way to upload file.... (2000) [LOOKUP] (1997) RE: Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997) For those of you not on the WebCatalog Beta... (1997) strange math (2004) really wierd browser truncating (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) UPDATE PROBLEM (1997) [OT] DOD again (2003) Adding up line items. (2000) WebCat2b12 CGI Mac - [shownext] problem (1997) Extended [ConvertChars] (1997) [UPPERCASE] (1997) WebCat2b15MacPlugin - [protect] (1997) using showpage and showcart commands (1996) Question re: Format command (2000) How To question on setting up downloads (1997) Frames and WebCat (1997) Searching multiple Databases (1997) Sku numbers (1997)