killall-q wrote: ↑August 22nd, 2024, 10:08 pm
These actions trigger on skin load/refresh. It does not matter what the value of the measure is. If
IfConditionMode=1, they will trigger every update. Only the values 0 and 1 cause an action to be triggered.
In logical conditions 0 always means false, while 1 always means true. This is why the
IfCondition=0 option of the [mZero] measure is always false and the
IfCondition=1 option of the [mOne] measure is always true. Logically these options are completely correct, however they make not too mucj sense. Unlike in IfActions, in the IfCondition option you can use a real condition, not just a value. What I assume you should have to use is something like this:
IfCondition=(mZero=0), for instance.
Additional tip: In Rainmeter, unlike in a programming language, the comments always have to go to new line. Don't add those comments after any kind of option, neither after a section name, nor after an option. Rainmeter simply doesn't ignore these comments, the semicolon being treated like a commenting out character
ONLY if it is the first character on a line. So, strictly speaking the above code should look like this:
Code: Select all
[mZero]
;Always returns false
...
[mOne]
;Always returns true
...