pbeesley
November 5th, 2009, 01:01 PM
Can I have an if statement in a lua script to change the colour (I'm english and that's how you spell colour....stupid firefox spellcheck) of a ring based on the value of the arg?
something like this
arg='cpu1',
max=100,
if value >80 then
fg_colour=RED,
else if value >60 then
fg_colour=YELLOW,
else if
fg_colour=GREEN
is that do-able?
Thanks Guys :rolleyes:
something like this
arg='cpu1',
max=100,
if value >80 then
fg_colour=RED,
else if value >60 then
fg_colour=YELLOW,
else if
fg_colour=GREEN
is that do-able?
Thanks Guys :rolleyes: