sl23 wrote: ↑July 16th, 2024, 11:38 am
I just noticed the & character, why have you added that? Is it necessary to work correctly? After evaluation Hidden=([&m2Total:]=0 ? 1 : 0) why the &?
The & is necessary for the nested syntax;
The & is used for using measures with the nested syntax, eg. [&Measure_Test], the # is used for variables with the nested syntax, eg. [#variable2use].
you can use [&Measure_Test] as a "standalone" too as an alternative to [Measure_Test]; the same for variables.
Thankfully, ikarus1969 helped you out to solve this while I was busy with something else, but just to clarify...
sl23 wrote: ↑July 15th, 2024, 8:28 pmApart from the Epsilon, what's that?
It's just a very small value added to a potentially 0 divisor, to prevent the "Division by 0" errors in the log.
sl23 wrote: ↑July 16th, 2024, 9:36 am
One last thing, though related to bar meters, why is it this works for the String meters but not the Bar meters? String:X=([m#CurrentSection#Total:]=0 ? 0 : #BarW#+2)rWorks. Bar: X=([m#CurrentSection#Total:]=0 ? 0 : #BarW#+2)rFails, moves all bars to X=0. Bar: X=([m#CurrentSection#:]=0 ? 0 : #BarW#+2)rFails, needs a skin refresh.
Section names are correct btw.
DiskBar.gif
Apart from using Lua (mentioned just for reference), there's no way of "extracting an index" from a section name in order to use it further. So, if you have an [1] section and a [1Used] section, you'll only be able to get the "1" from the first section, via #CURRENTSECTION#, because the second contains more than the "1" since section names must be unique in a skin. However, you don't need to do that at all: if this positioning works for one meter, just position the other meters in that drive's group relatively to that one which works, via r and R.
Thanks for the input
I ended up using Bar meters in the end. I found it much easier to do what I wanted. But I am learning a little about Formulas too and how/where to use them, which is good.
I'm just finishing a two year old project. Another Taskbar suite of skins that, funnily enough, sit on the Taskbar!