@if $var == 1 {
  @error "1";
}

@if $var == 1 {
  @error "1";
} @else {
  @error "else";
}

@if $var == 1 {
  @error "1";
} @else if $var == 2 {
  @error "2";
} @else {
  @error "else";
}

@if $var == 1 and  $m != $z {
  @error "1";
} @else if $var == 2 {
  @error "2";
} @else if $var == 1  and  $m  !=  $z  { /* Noncompliant ![sc=12;ec=38;secondary=19]! !{This condition duplicates the one at line 19. Either remove or update this condition.}! */
  @error "3";
}

@if $var == 1 {
  @error "1";
} @else if $var == 1 { /* Noncompliant ![sc=12;ec=21;secondary=27]! !{This condition duplicates the one at line 27. Either remove or update this condition.}! */
  @error "2";
} @else if $var == 2 {
  @error "3";
} @else if $var == 1 { /* Noncompliant ![sc=12;ec=21;secondary=27]! !{This condition duplicates the one at line 27. Either remove or update this condition.}! */
  @error "4";
}

@if $var == 1 {
  @error "1";
} @else if $var == 2 {
  @error "2";
} @else {
  @if $var == 1 {
    @error "1";
  } @else if $var == 1 { /* Noncompliant ![sc=14;ec=23;secondary=42]! !{This condition duplicates the one at line 42. Either remove or update this condition.}! */
    @error "2";
  }
}
