Logical not(A or B)
is equal to not(A) and not(B)
so you need to use and
instead of comma (which is or
), i.e.:
.fontFamily(@font-family, @parent: arial) when
not(@font-family = @parent) and
not(@font-family = inherit) {
font-family: "@{font-family}";
}
.myclass-1 {
.fontFamily(arial);
}
.myclass-2 {
.fontFamily(inherit);
}
.myclass-3 {
.fontFamily(laira);
}
CSS output:
.myclass-3 {
font-family: "laira";
}