Jump to content

_DateDayOfWeek($iWeekDay)


 Share

Recommended Posts

What I Want:

If Day of the week is Friday, Saturday or Sunday, then a Traytip appears to let me know. Otherwise, do nothing.

What Currently Happens:

TrayTip appears on every day, not just Friday thru Sunday.

This is the most relevant part of the script, but let me know if I need to paste the rest. It is a small script.

Thanks in Advance.

If _DateDayOfWeek($iWeekDay) = "Friday" or "Saturday" or "Sunday" Then
    TrayTip ( "That Day is...", _DateDayOfWeek($iWeekDay), 5)
EndIf]
Link to comment
Share on other sites

If _DateDayOfWeek($iWeekDay) = "Friday" or _DateDayOfWeek($iWeekDay) = "Saturday" or _DateDayOfWeek($iWeekDay) = "Sunday" Then
    TrayTip ( "That Day is...", _DateDayOfWeek($iWeekDay), 5)
EndIf

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

If _DateDayOfWeek($iWeekDay) = "Friday" or _DateDayOfWeek($iWeekDay) = "Saturday" or _DateDayOfWeek($iWeekDay) = "Sunday" Then
    TrayTip ( "That Day is...", _DateDayOfWeek($iWeekDay), 5)
EndIf
Gary FTW! Wow that was and uber fast reply. I posted, hit refresh and there is Gary...nice.

Well I obviously see the difference, but I dont really understand the difference. Can you enlighten me?

Is it, that if I did it my original way, that I am saying:

"If _DateDayOfWeek($iWeekDay) produces the result "Friday" or If the text "Saturday " or "sunday" THen..."

I assume the or does not carry the form of "If X ="?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...