There is no literal
AND logical operator in Rainmeter, it is defined with the
&& logical operator. Keep in mind that the two components of a logical && must be enclosed in (parentheses).
So it will always be:
(if this) && (if that)
(if this) && ((if that) && (if the other))
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[MeasureA]
Measure=Calc
Formula=3
[MeasureB]
Measure=Calc
Formula=70
[MeasureX]
Measure=Calc
IfCondition=MeasureB = 0
IfTrueAction=[!SetOption MeterX Text "Text1"]
IfCondition2=(MeasureA < 14) && ((MeasureB >= 1) && (MeasureB <= 49))
IfTrueAction2=[!SetOption MeterX Text "Text2"]
IfCondition3=(MeasureA < 14) && (MeasureB = 50)
IfTrueAction3=[!SetOption MeterX Text "Text3"]
IfCondition4=(MeasureA < 14) && ((MeasureB >= 51) && (MeasureB <= 99))
IfTrueAction4=[!SetOption MeterX Text "Text4"]
IfCondition5=MeasureB = 100
IfTrueAction5=[!SetOption MeterX Text "Text5"]
IfCondition6=(MeasureA > 14) && ((MeasureB >= 51) && (MeasureB <= 99))
IfTrueAction6=[!SetOption MeterX Text "Text6"]
IfCondition7=(MeasureA > 14) && (MeasureB = 50)
IfTrueAction7=[!SetOption MeterX Text "Text7"]
IfCondition8=(MeasureA > 14) && ((MeasureB >= 1) && (MeasureB <= 49))
IfTrueAction8=[!SetOption MeterX Text "Text8"]
[MeterX]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
The same is true with a logical OR, which is
||.
Edit: kyriakos876 beat me to it!
kyriakos876, Two notes.
While they do no harm, the outer (parentheses) are not required on the Formula option of a Calc measure, or on an IfCondition. Those are by their nature assumed to be numeric formulas.
You do not need to use a measure value as a [SectionVariable] in either the Formula option of a Calc measure, or on an IfCondition. Since these are again assumed to be numeric, a text name like "MeasureA" can only refer to the measure [MeasureA]. If you do use a [SectionVariable] in the formula or comparison, you must use
DynamicVariables=1.