Hi, could anyone please take some time to check my simple code? I can't get
the correct output. I think there must be something wrong with my logic.
Sorry to waste you gays time. Thanks. 

global gName

on getTimer me
  CurrentTime = the long time
  if currentTime >= "12:00:00 AM" and currentTime <= "12:59:59 AM"  then
    member("Hi").text = "Hi!" &&gName&", Good Morning!!!"
  else if currentTime >= "01:00:00 AM" and currentTime <= "11:59:59 AM" then
    member("Hi").text = "Hi!" &&gName&", Good Morning!!!"
  else if currentTime >= "12:00:00 PM" and currentTime <= "12:59:59 PM"then
    member("Hi").text = "Hi!" &&gName&", Good Afternoon!!!"
  else if currentTime >= "01:00:00 PM"  and currentTime <= "05:59:59 PM"
then
    member("Hi").text = "Hi!" &&gName&", Good Afternoon!!!"
  else if currentTime >= "05:59:59 PM"  and currentTime <= "09:59:59 PM"
then
    member("Hi").text = "Hi!" &&gName&", Good Everning!!!"
  else 
    member("Hi").text = "Hi!" &&gName&", Good Night!!!"
  end if
end

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to