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:

Buying sans cart (1997) Re:Dumb Question about Docs (1997) Subtotal Not Calculated on Invoice.html (1998) OT: Weird table rendering w/ WebCat in Explorer (2005) Tech question about web dna actions (1998) Can this be done? (1997) [isfile] ? (1997) [isfile] ? (1997) New commands in Final candidate (1997) AOL refuses some e-mails (2000) Not really WebCat (1997) WebCat b13 CGI -shownext- (1997) There's a bug in the math context ... (1997) [getchars] questions (1997) Claris HomePage messes up the code (1997) international time (1997) Setting up WebCatalog with Retail Pro data (1996) [WebDNA] WebDNA.us Forum (2010) Re(2): Foreign Chars ( יאצה and so on) (1998) server not running. (2003)