It is currently April 26th, 2024, 8:59 pm

Programming statements

General topics related to Rainmeter.
boebi
Posts: 4
Joined: March 6th, 2010, 10:05 pm

Programming statements

Post by boebi »

Does rainmeter support programming statements for skin development?

Such as the commonly used if/else statement or for loop?

I've been looking around and couldn't find any trace of this, just wanted to make sure. Having them would boost my skin development massively ^^
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Programming statements

Post by jsmorley »

boebi wrote:Does rainmeter support programming statements for skin development?

Such as the commonly used if/else statement or for loop?

I've been looking around and couldn't find any trace of this, just wanted to make sure. Having them would boost my skin development massively ^^
Not as such, no. A Rainmeter skin is read and displayed consecutively. There are some things which can be done in the context of a Measure (usually Measure=Calc) statement using IfAbove/Below/EqualAction and "conditional" modifiers to get a rudimentary if/then/else, and a way to use a Measure=Calc with Formula=Counter which can do a rough and ready "do / while / for / next" kind of construct. However, Rainmeter was never meant to be a "programming language", but rather a VERY flexible way to say "measure this, and display it looking like that, there".