#67912 - 2002-07-09 12:51 AM
Welcome message in logon script
|
systeembeheerder
Fresh Scripter
Registered: 2002-04-14
Posts: 26
Loc: The Netherlands
|
I want to set in my logon script a welcome message.
It most say in the morning: Goedemorgen In the afternoon: Goedemiddag And in the evening: Goedeavond
The time when he must say: Goedemorgen is between 0.00 and 11.59 hour and the time when he must say: Goedmiddag is between 12.00 and 17.59 hour and the time with the script must say: Goedeavond is between 18.00 and 23.59
I have tried some things with @time but every time my script gets an error.
How must this in my logon script?
Please advise..
|
|
Top
|
|
|
|
#67915 - 2002-07-08 01:52 PM
Re: Welcome message in logon script
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
For ideas:
code:
$periode=Val(Substr(@time,1,2)) SELECT CASE (12 <= $periode) AND ($periode <= 17) ? "Goedemiddag, @userid" CASE (18 <= $periode) AND ($periode <= 23) ? "Goedenavond, @userid" CASE 1 ? "Goedemorgen, @userid" ENDSELECT
greetings. [ 08 July 2002, 13:53: Message edited by: MCA ]
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1607 anonymous users online.
|
|
|