Re: Showif dates...
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45936
interpreted = N
texte = Isn't this example ({[date]}<{15/12/2000}) just evaluating dates and hasnothing to do with [math]?{[date]} would bring up the value 4/12/2002 (running as dd/mm/yyyy). Andas the docs says Dates must be enclosed in curly braces to distinguish themfrom regular numbers. So ({[date]}<{15/12/2000}) becomes({4/12/2002}<{15/12/2000}) which because the curly brackets indicates theyare dates, evaluates as true and has nothing to do with [math], or am Iwrong?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.> -- > ______________________________________________________________________________> _> 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/> -------------------------------------------------------------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:
Isn't this example ({[date]}<{15/12/2000}) just evaluating dates and hasnothing to do with [math]?{[date]} would bring up the value 4/12/2002 (running as dd/mm/yyyy). Andas the docs says Dates must be enclosed in curly braces to distinguish themfrom regular numbers. So ({[date]}<{15/12/2000}) becomes({4/12/2002}<{15/12/2000}) which because the curly brackets indicates theyare dates, evaluates as true and has nothing to do with [math], or am Iwrong?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.> -- > ______________________________________________________________________________> _> 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/> -------------------------------------------------------------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/
Tim Robinson
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:
show me your store ! (2003)
WebStar Secure on other machine (1997)
fieldType=num (1997)
RE: Template not found error messages (1997)
Size limit for tmpl editor ? (1997)
Need relative path explanation (1997)
SEARCH Peram (2003)
WebDNA 5.x & iTools 7 & Apache 2 (2003)
Shipping Tables (1999)
[math] oddness .. (2002)
webcat restarting script on Linux? (1999)
Database (2002)
Searching multiple records for certain info (2000)
Next (1997)
2.0 Info (1997)
SET-payment (2000)
Bug Report, maybe (1997)
Emailer help....! (1997)
[WebDNA] TCPconnect (2012)
Serving images from databases (1998)