• Welcome back Guest!

    MARSH is a private reefing group. Comments and suggestions are encouraged, but please keep them positive and constructive. Negative threads, posts, or attacks will be removed from view and reviewed by the staff. Continually disruptive, argumentative, or flagrant rule breakers may be suspended or banned.

apex coding (1 Viewer)

Users who are viewing this thread

gregg

President
Staff member
Administrator
Moderator
Board Member
Supporting Member
Build Thread Contributor
Joined
Jan 28, 2015
Messages
6,805
Reaction score
2,815
Location
Downtown
so i know the DOW for monday - wednesday - friday is -m-w-f-

but what is the DOW for tuesday, thursday, saturday and sunday?
 

soymilk

Supporting Member
Joined
Feb 3, 2010
Messages
2,608
Reaction score
1,344
Location
Fresno, Texas
If DOW SMTWTFS Then [ON/OFF/Profile]

The letters for each day of the week are placeholders, and if you substitute one with a hyphen, then that day will evaluate False and the output will not be triggered for that day. For example:

Set OFF
If DOW SM-W-FS Then ON


This would turn on the output every day except for Tuesday and Thursday.

image3-7-png.png
 
OP
OP
gregg

gregg

President
Staff member
Administrator
Moderator
Board Member
Supporting Member
Build Thread Contributor
Joined
Jan 28, 2015
Messages
6,805
Reaction score
2,815
Location
Downtown
How does it know the difference between Saturday and Sunday or Tuesday and Thursday?
 

soymilk

Supporting Member
Joined
Feb 3, 2010
Messages
2,608
Reaction score
1,344
Location
Fresno, Texas
its written in order.

If DOW SMTWTFS Then [ON/OFF/Profile] so the first S is known as sunday, and the last S is known as saturday.

having it run every other day is kinda weird. Would you be ok with 4 or 3 days outta the week? Something like

If DOW S-T-W-T
 
OP
OP
gregg

gregg

President
Staff member
Administrator
Moderator
Board Member
Supporting Member
Build Thread Contributor
Joined
Jan 28, 2015
Messages
6,805
Reaction score
2,815
Location
Downtown
its written in order.

If DOW SMTWTFS Then [ON/OFF/Profile] so the first S is known as sunday, and the last S is known as saturday.

having it run every other day is kinda weird. Would you be ok with 4 or 3 days outta the week? Something like

If DOW S-T-W-T
This might work, thanks I’ll test it out and see.
 
Top