Blegh. Hate it.
2 Likes
if ({Root Container.Button.myCustomProp} < 1.5, '100,100,100', if ({Root Container.Button.myCustomProp} < 2.5, '200,200,200', if ({Root Container.Button.myCustomProp} < 3.5, 255,255,255', '0,0,0')))
Much better!
2 Likes
Can I try ?
if ({Root Container.Button.myCustomProp} < 1.5,
'100,100,100', if (
{Root Container.Button.myCustomProp} < 2.5, '200,200,200',
if ({Root Container.Button.myCustomProp} < 3.5,
'255,255,255', '0,0,0')
)
)
I agree that in this case of simulating a switch
or case
, lined ifs do make things clearer.
But that's the one and only case !
Even though I get a slight tingle from the lack of indentation.
2 Likes
Awesome thank you
1 Like