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:

b18 problem on NT 4.0 (1997) Help! WebCat2 bug (1997) ACGI processing for .html (1997) carriage returns in data (1997) WebCatalog/WebMerchant 2.1 (1998) Getting total number of items ordered (1997) Frames and WebCat (1997) Show first couple of lines. (2003) Re:One more time (1997) [WebDNA] Not even sure what to ask for help on. . . :( (2008) Separate SSL Server (1997) [format] question (2000) New [math] variable not working... (2001) Migrating to NT (1997) WebCatalog for Postcards ? (1997) PCS Emailer's role ? (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) [lookup] speed sales pitch (2003) Getting a domain listening on port 443 and port 80? (2003) well sort of - database design (2003)