It is currently May 4th, 2024, 9:27 pm

Variable name in variable name

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16200
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Variable name in variable name

Post by balala »

In a skin I have a variable First and other two variables Variable1 and Variable2. The possible values for First are 1 or 2. How can be used the Variable1 or Variable2, according to the value of First? I mean, that I'd like to have a #Variable1# or #Variable2#, according to value of First. I tried something like #Variable#First## or #Variable(#First#)#, but had no success.
Thanks
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Variable name in variable name

Post by moshi »

something like:

Code: Select all

[boooo]
Measure=String
String=#First#
RegExpSubstitute=1
Substitute="^1$":"#Variable1#","^2$":"#Variable2#"
User avatar
balala
Rainmeter Sage
Posts: 16200
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Variable name in variable name

Post by balala »

Thank you, this answer I looked for.