To reproduce:
The Less preview doesn't want me to use the correct share link so here's the Less for it:
@foo: 1;
@bar: a;
@foo-is-one: boolean(@foo = 1);
@bar-is-a: boolean(@bar = a);
@is-qar: boolean(@foo-is-one = @bar-is-a);
/* @is-baz: boolean((@foo = 1) = (@bar = a)); */
:root {
--qar: @is-qar;
/* --baz: @is-baz; */
}
Current behavior:
Commenting in the @is-baz variable on line 6 (and line 10 to use it in an expression) causes the error variable @is-baz is undefined. As you can see, the expression @is-baz contains is the same is the (working) @is-qar expression, but inlines the @foo-is-one and @bar-is-a checks.
Expected behavior:
There shouldn't be any undefined variable, because the variable is defined — I should be allowed to inline boolean expressions / logical comparisons like so.
Environment information:
less version: latest
nodejs version: n/a
operating system: n/a
To reproduce:
The Less preview doesn't want me to use the correct share link so here's the Less for it:
Current behavior:
Commenting in the
@is-bazvariable on line 6 (and line 10 to use it in an expression) causes the errorvariable @is-baz is undefined. As you can see, the expression@is-bazcontains is the same is the (working)@is-qarexpression, but inlines the@foo-is-oneand@bar-is-achecks.Expected behavior:
There shouldn't be any undefined variable, because the variable is defined — I should be allowed to inline boolean expressions / logical comparisons like so.
Environment information:
lessversion: latestnodejsversion: n/aoperating system: n/a