Re: [showif [math
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 24805
interpreted = N
texte = >>Should this work?>>I have heard of turning dates into a number of days from 0/0/0000,>>but I'm lost on what to do here to make this seemingly simple piece>>of code work.>>>>[showif [math time]{[time]}-{0:5:0}>{[TimeFromDb]}[/math]]>>Bla Bla>>[/showif]>>Notice: Not tested... this would be closer to the correct syntax without>trying... let me know>>[showif [math time]{[time]}-{0:5:0}[/math]>[TimeFromDb]]>Bla Bla>[/showif]Assuming you used this technique:[append]timeField=[math]{[time]}[/math][/append]... to enter the time into your db, the following would be even closer to the proper syntax for comparing the current time minus 5 minutes to the time stored in the db:[search][founditems][showif [math]{[time]}-{00:05:00}[/math]>[TimeField]]Bla Bla[/showif][/founditems][/search]================================Kenneth Grome, WebDNA Consultant808-737-6499, http://webdna.net================================-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.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
Associated Messages, from the most recent to the oldest:
>>Should this work?>>I have heard of turning dates into a number of days from 0/0/0000,>>but I'm lost on what to do here to make this seemingly simple piece>>of code work.>>>>[showif [math time]{[time]}-{0:5:0}>{[TimeFromDb]}[/math]]>>Bla Bla>>[/showif]>>Notice: Not tested... this would be closer to the correct syntax without>trying... let me know>>[showif [math time]{[time]}-{0:5:0}[/math]>[TimeFromDb]]>Bla Bla>[/showif]Assuming you used this technique:[append]timeField=[math]{[time]}[/math][/append]... to enter the time into your db, the following would be even closer to the proper syntax for comparing the current time minus 5 minutes to the time stored in the db:[search][founditems][showif [math]{[time]}-{00:05:00}[/math]>[TimeField]]Bla Bla[/showif][/founditems][/search]================================Kenneth Grome, WebDNA Consultant808-737-6499, http://webdna.net================================-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Kenneth Grome
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:
email and W* 4.x (2000)
WebCatalog for guestbook ? (1997)
[tcp connect] (1998)
WebDNA Server Not Running (2005)
WebCat2 beta 11 - new prefs ... (1997)
Using Plug-In while running 1.6.1 (1997)
Date Formats (1997)
[OT] Theiving B*****ds (2004)
textarea data entry and display (2000)
suffix mapping, use of cache, etc. (1997)
Encyption mail was Suggestions for Topics ... (1998)
Problems passing [SKU] with $Replace in 2.0 (1997)
Merging databases (1997)
WC2b15 File Corruption (1997)
WebCatalog/WebMerchant 2.1 (1998)
strange IE 4.0 (1998)
Not really WebCat (1997)
Transfer of data from Invoice to thank you templates (1998)
Closing Databases (1998)
Includeform Error (2002)