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:
Part Html part WebDNA (1997)
Authenticate (1997)
creator code (1997)
WebCat2 - [SendNews] (1997)
[searchString] (1997)
Bad Cookie (1998)
[WebDNA] html email.. should be a no-brainer.. but it is not parsing. (?) (2010)
File Upload (1997)
Word search (1997)
wc 2 pro users - sites, quotes wanted (1997)
Can you do this??? and other stuff (1997)
WebDNA Verison 4.5 will Not Restart! This SUCKS! (2002)
Emailer & WebStar Mail and 551 Error (2000)
WebCat and image maps (1997)
Forumulas.db & Variables (2002)
Upcoming 2.1 Release and PCS Committment (1997)
OT: JS Q (2003)
form data submission gets truncated (1997)
Changes to the List (1997)
Setting up WebCatalog with Retail Pro data (1996)