Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Date, Time, Minivend, Perl Question



******    message to minivend-users from Steve & Patti Getzinger <steveandpatti@wubs.org>     ******

  I am trying to write an [if] for MV 4.03 and so far am stumped. Both halves work
fine by themselves so I am thinking operator problem. I have tried may configs
utilizing ( ) here and there but always come up empty when I try both together. It
must meet both conditions. Actually there are 3 conditions and when I can get past
this I am sure the third will be a no brainer to put in place. Here is my basic tag

[if (`date` =~ /^S/) && (localtime($hours) => 7)]
R
[/if]

Should write the R if it is a weekday and after 7 am

TIA

Steve

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: