Now, even if the skin were to be given this number, this does not accomplish the function at hand. I want certain lines (namely the CPU lines, for when that certain core does not exist) to be hidden, as well as the text that is associated with it, so, here is my current code that does not work, (#NumCores# is a pre-defined value, for this test, I set it to 1). It's also worth noting that I set the calc values to decimals, to eliminate any problems with < >, as opposed to <= =>, however, it should return with a maximum range of .99<X<2.01. Also, a disclaimer: Although it is not my first time working with switches, it is my first time working with them in Rainmeter, so I'm not even sure about the IfElse function (the manual was very lacking in description :| ) so, all the switch functions I've adapted from other forum posts.
Code: Select all
[[MeasureNumOfCPU2]
Measure=Calc
Formula=#NumCores#
IfBelowValue=1.99
IfBelowAction=0
IfElse
IfElseAction=1
;A few other, unrelated things in here
[MeterCPU2VisualBar] ;displays a line at a calculated, fluctuating position.
Meter=Image
MeasureName=MeasureNumOfCPU2
SolidColor=#graph.line#
X=0
Y=[MeasureCPU2OverallHeight]
W=214
H=1
DynamicVariables=1
Hidden=%1 ;If the problem wasn't above, this would probably be it, I don't think that measures can be used
; down here, can they?