github.com/servernoj/jade@v0.0.0-20231225191405-efec98d19db1/testdata/v2/case.jade (about)

     1  
     2  - var friends1 = 10
     3  case friends1
     4    when 0
     5      p you have no friends1
     6    when 1
     7      p you have a friend
     8    default
     9      p you have #{friends1} friends1
    10  
    11  
    12  - var friends2 = 0
    13  case friends2
    14    when 0
    15      - fallthrough
    16    when 1
    17      p you have very few friends2
    18    default
    19      p you have #{friends2} friends2
    20  
    21  
    22  - var friends3 = 0
    23  case friends3
    24    when 0
    25      - break
    26    when 1
    27      p you have very few friends3
    28    default
    29      p you have #{friends3} friends3
    30  
    31  
    32  - var friends = 1
    33  case friends
    34    when 0: p you have no friends
    35    when 1: p you have a friend
    36    default: p you have #{friends} friends
    37