Re: Showif dates...
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45944
interpreted = N
texte = Tim Robinson wrote:> Isn't this example ({[date]}<{15/12/2000}) just evaluating dates and has> nothing to do with [math]?>> {[date]} would bring up the value 4/12/2002 (running as dd/mm/yyyy). And> as the docs says Dates must be enclosed in curly braces to distinguish them> from regular numbers. So ({[date]}<{15/12/2000}) becomes> ({4/12/2002}<{15/12/2000}) which because the curly brackets indicates they> are dates, evaluates as true and has nothing to do with [math], or am I> wrong?;-) I think what the *creator* of our illustrious application is saying is thatthat youcan use any peram that works inside a math context. Both methods work.I find this interesting though because according to what Grant is saying, all datesare actually converted to days ???? inside an if context. Is this right?When I became aware of the date as days format many a door opened and Ithink most developers will probably use this format.. especially if the value is tobestored.Donovan>>> Regards,> Tim>> > From: Grant Hulbert
> > Reply-To: (WebCatalog Talk)> > Date: Tue, 3 Dec 2002 15:06:37 -0800> > To: (WebCatalog Talk)> > Subject: Re: Showif dates...> >> >> 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.> > -->-------------------------------------------------------------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:
Tim Robinson wrote:> Isn't this example ({[date]}<{15/12/2000}) just evaluating dates and has> nothing to do with [math]?>> {[date]} would bring up the value 4/12/2002 (running as dd/mm/yyyy). And> as the docs says Dates must be enclosed in curly braces to distinguish them> from regular numbers. So ({[date]}<{15/12/2000}) becomes> ({4/12/2002}<{15/12/2000}) which because the curly brackets indicates they> are dates, evaluates as true and has nothing to do with [math], or am I> wrong?;-) I think what the *creator* of our illustrious application is saying is thatthat youcan use any peram that works inside a math context. Both methods work.I find this interesting though because according to what Grant is saying, all datesare actually converted to days ???? inside an if context. Is this right?When I became aware of the date as days format many a door opened and Ithink most developers will probably use this format.. especially if the value is tobestored.Donovan>>> Regards,> Tim>> > From: Grant Hulbert > > Reply-To: (WebCatalog Talk)> > Date: Tue, 3 Dec 2002 15:06:37 -0800> > To: (WebCatalog Talk)> > Subject: Re: Showif dates...> >> >> 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.> > -->-------------------------------------------------------------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/
Donovan Brooke
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:
price carry over (1997)
WebCat cannot handle compatible search parameters? (1997)
Highlighting words found in a keyword search (2003)
[WebDNA] [Orderfile] problem (2009)
Search and Change (2003)
New iMac, now ... how do I make webdna serve .html files? (2005)
MacFinder -- a new WebDNA web site (1998)
OT - asp snippet similar to [!][/!] (2003)
[WebDNA] Authentication across domains (2009)
Cancel Subscription (1996)
Help name our technology! (1997)
New Plug-in and Type 11 errors (1997)
NT considerations (1997)
Re2: frames & carts (1997)
[delete] problem (1997)
Using Cookie for client specific info? (1997)
GuestBook example (1997)
AOL and webcat (1998)
WC2f3 (1997)
WebDNA Intranet Edition release (2002)