I have an U16 channel "Units" that contains 0 or 1.
If I enter ? iif(units[0],format("%.3f",23),format("%.1f",23)) into the command / alert it works as expected.
if I try to put the same thing inside a variable value component expression iif(units[0],format("%.3f",23),format("%.1f",23)) does not work.
global myunits
if I repeat the same expression with a global variable inside a variable value component expression iif(myunits,format("%.3f",23),format("%.1f",23)) it works.
I have also tried this in the visibility expression with no success.
What am I doing wrong ?