Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 326

Nested Conditions + Formulas

$
0
0
Just trying out something to see if it works, but I think I need an alternative way of doing it.

I understand that you can use number values only, but does that mean you can't change the values of a colour due to the commas and multiple number values?

eg:
DiskNorm=255,255,255,180
FontColor=(((m#CURRENTSECTION#DiskRead=0)&&(m#CURRENTSECTION#DiskWrite=0))=0 ? #DiskNorm# : 0)
The zero at the end of the condition will be where I add the other conditions if I can.

Thanks :thumbup:

EDIT: Assuming it was possible, likely not, but let's say it is, would this be the correct syntax?

Code:

FontColor=(((m#CURRENTSECTION#DiskRead=0)&&(m#CURRENTSECTION#DiskWrite=0))=0 ? #DiskNorm# : ((((m#CURRENTSECTION#DiskRead>0)&&(m#CURRENTSECTION#DiskWrite=0))=0 ? #DiskRead# : 0)||(((m#CURRENTSECTION#DiskRead=0)&&(m#CURRENTSECTION#DiskWrite>0))=0 ? #DiskWrite# : 0)||(((m#CURRENTSECTION#DiskRead>0)&&(m#CURRENTSECTION#DiskWrite>0))=0 ? #DiskBoth# : 0)))

Statistics: Posted by sl23 — Today, 12:11 pm — Replies 1 — Views 37



Viewing all articles
Browse latest Browse all 326

Trending Articles