I've tried that and it still doesn't work. When I copy the code from the LESSPHP documentation it fails to compile.
.guarded(@arg) when (@arg = hello) {
color: blue;
}
div {
.guarded(hello); // match
}
span {
.guarded(world); // no match
}
This is assuming that the @arg
variable has already been defined.