Here's a function that I am using to determine if the Day of the Week is during the weekend;
If I want to see if the current day of the week is on the weekend, I can do;
which returns 1 if it is the weekend, or 0 if it is not.
Joe
Code:
function weekend=`%@if[%@eval[%1 mod 6] = 1,1,0]`
If I want to see if the current day of the week is on the weekend, I can do;
Code:
echo %@weekend[%_dowi]
which returns 1 if it is the weekend, or 0 if it is not.
Joe