It is currently April 16th, 2024, 9:07 am

Limitation for If* expression

Get help with creating, editing & fixing problems with skins
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Limitation for If* expression

Post by mak_kawa »

Just a curiosity. Is there an upper limit for the number of IfCondition/IfMatch expressions? I mean the number is "N" of IfConditionN and IfMatchN.
User avatar
balala
Rainmeter Sage
Posts: 16141
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Limitation for If* expression

Post by balala »

mak_kawa wrote:Just a curiosity. Is there an upper limit for the number of IfCondition/IfMatch expressions? I mean the number is "N" of IfConditionN and IfMatchN.
No, there is not.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Limitation for If* expression

Post by jsmorley »

18,446,744,073,709,551,615

We feel like eighteen quintillion four hundred and forty-six quadrillion seven hundred and forty-four trillion seventy-three billion seven hundred and nine million five hundred and fifty-one thousand six hundred and fifteen IfConditions in a single measure should be enough.
User avatar
balala
Rainmeter Sage
Posts: 16141
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Limitation for If* expression

Post by balala »

jsmorley wrote:18,446,744,073,709,551,615

We feel like eighteen quintillion four hundred and forty-six quadrillion seven hundred and forty-four trillion seventy-three billion seven hundred and nine million five hundred and fifty-one thousand six hundred and fifteen IfConditions in a single measure should be enough.
Well, to be honest, I had no idea about this "limitation", but as such, I think this also means I had right and practically there is no limit.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Limitation for If* expression

Post by jsmorley »

balala wrote:Well, to be honest, I had no idea about this "limitation", but as such, I think this also means I had right and practically there is no limit.
Yes. While there is pretty much always some "limit" with numbers in computer programs, in this case it pretty much rounds to "infinite", since you would run entirely out of memory long before Rainmeter could reach that number of IfConditions.
User avatar
balala
Rainmeter Sage
Posts: 16141
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Limitation for If* expression

Post by balala »

jsmorley wrote:Yes. While there is pretty much always some "limit" with numbers in computer programs,
True.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Limitation for If* expression

Post by fonpaolo »

I suspect that one gets tired of adding strings long before he reaches the limit of IfConditions... ;-) :lol:
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Limitation for If* expression

Post by mak_kawa »

Hi guys.

Thanks for information. Infinite as the outside of our space...