Archive of UserLand's first discussion group, started October 5, 1998.
Buggy logic macro demo
Author: Dave Winer Posted: 4/21/2000; 8:54:27 AM Topic: Macros on this server Msg #: 16502 (In response to 16469) Prev/Next: 16501 / 16503
Here's a macro:{if (date.dayofweek (now) >= 2) and (date.dayofweek (now) <= 6) { return ("Only " + (6 - date.dayofweek (now) + 1) + " days till the weekend!")} else { return ("Hope you're having a great weekend!")}}
However it's not working because it's neutering the < in the <= comparison. Not good!
This page was archived on 6/13/2001; 4:54:53 PM.
© Copyright 1998-2001 UserLand Software, Inc.