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

Lua Scripting • Re: Formulas within nested inline Lua causing unexpected behavior

$
0
0
This was the solution. Thanks.

I'd actually already checked that page (and searched the forum) but it didn't mention your suggested syntax, instead it lists `[#VarName]` to be used instead of `#VarName#` which I'd tried without it making any difference (and various combinations per the other Nested Variables docs page). While the `[&...` is listed exclusively for measures so wasn't obvious.

Perhaps the `#CURRENTSECTION#` variable is unique in that regard (in that it requires a unique hybrid syntax)? Would be worthwhile added to the docs as some extra example perhaps.
You're welcome, glad it worked for you. Yeah, #CURRENTSECTION# is indeed a unique variable (at one point, its value couldn't be retrieved from Lua, if I remember correctly), but it's not related to the case above - the idea is the same for all variables or section variables like measures or meters when used in the inline Lua syntax. On a second thought, now that you mentioned it, I think you could even use the nested syntax for all parts, like [&[#CURRENTSECTION]:W], and achieve the same thing, if you wanted to be pedantic about it. :???:

Statistics: Posted by Yincognito — Yesterday, 11:00 am



Viewing all articles
Browse latest Browse all 1461

Trending Articles