Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Day of week and time of day Symposium scripting

Status
Not open for further replies.

AeroDyna

Technical User
Apr 19, 2007
22
GB
Could anyone help me out here please? I am new at symposium scripting and I have an assignment to complete as soon as possible. I have to input a day of week and time of day into a script and a bit confused.

If day of week is Monday, wednesday and Friday and time of day is 8am - 6pm then execute open section.
If day of week is Tuesday and Thursday and time of day is 8am - 8pm then execute open section.

IF (DAY OF WEEK = MONDAY,WEDNESDAY,FRIDAY) AND (TIME OF DAY = 08:00..18:00)
THEN EXECUTE Open_Section
END IF

IF (DAY OF WEEK = TUESDAY,THURSDAY) AND (TIME OF DAY = 08:00..20:00)
THEN EXECUTE Open_Section
ELSE
EXECUTE Closed_section

Is the above scripting correct? Your help will be much appreciated.
 
I believe you would need to separate the days with OR rather than commas. i.e. IF (DAY OF WEEK = MONDAY OR WEDNESDAY OR FRIDAY)

Otherwise looks OK to me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top