TotalNET Advanced Server 5.2 Reference Manual

Example

Use the following sequence to map q:=nwsolaris/sys:/public/q&a to members of the support group, terminate the login script on Saturdays and Sundays, send the message "You spend 1/7 of your life on Monday. Have a nice day. :-)" on Mondays, send the message "Department meeting at 10:00." to members of the support group on Fridays with an alert of three sounds, and send the message "Happy birthday, Levi!" on October 29:

if member of support then map q:=nwsolaris/sys:/public/q&a
if day_of_week = saturday or day_of_week = sunday then exit
if day_of_week = monday then write You spend 1/7 of your life on Monday.\nHave a nice day. :-)
end
if day_of_week = friday then
if member of support then
write Department meeting at 10:00."
fire phasers 3 times
pause
end
end
if month = "10", day = "29", and login_name = "levi" then write "Happy birthday, Levi!"