Between

Tips and Techniques for using MLServer's Automation Rules
wireless
Senior Member
Senior Member
Posts: 210
Joined: Wed Mar 24, 2004 10:44 am
Location: East Tennessee
Contact:

Between

Postby wireless » Sat Feb 21, 2009 12:46 pm

Trying to set the following:

Whenever currenthourmilitary is greater than or equal 18
AND currenthourmilitary is less than or equal 22
Then SetVariable|between~true

The opposite automation rule is:

*Whenever currenthourmiliary is less than 18
AND currenhourmilitary is great than 22
Then SetVariable|between~false

*edit...took out "or equal" to not have two expressions have an equal on the same number.

The problem is the variable not changing.

What I'm trying to do is perform an action only between the hours of 6 p.m. and 10 p.m.

Server version 513
Last edited by wireless on Sun Feb 22, 2009 11:03 am, edited 2 times in total.

User avatar
Fonceur
Expert
Expert
Posts: 583
Joined: Sun Sep 09, 2007 10:18 am
Contact:

Postby Fonceur » Sat Feb 21, 2009 1:57 pm

For the opposite rule, you want to use OR...
MLComDevice: Control serial/TCP device (ASCII/hex) - MLSchedule: Alternative to MLScheduler
MLBeyondTV and MLSageTV: PVR support - TChanger: Sony BDP-CX7000ES 400 disc Bluray changer
TRadio: Sirius/HD/XM radio - TChart: Chart from variable Wiki

wireless
Senior Member
Senior Member
Posts: 210
Joined: Wed Mar 24, 2004 10:44 am
Location: East Tennessee
Contact:

Postby wireless » Sat Feb 21, 2009 2:53 pm

I don't see a Boolean OR expression. The variable is not changing even with the first automation rule.


Return to “Automation Rules”

Who is online

Users browsing this forum: No registered users and 1 guest