Last active
          August 29, 2015 14:28 
        
      - 
      
- 
        Save nathanpitman/5e812e2a984da5301cf2 to your computer and use it in GitHub Desktop. 
    ExpressionEngine switch, always be closing
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | {exp:channel:entries} | |
| {switch='<div class="row">||'} | |
| <div class="col-md-4"> | |
| {sn_programme_block} | |
| </div><!-- / .col-md-4 --> | |
| {if count!=total_results}{switch='||</div><!-- / .row -->'}{/if} | |
| {if count == total_results} | |
| </div><!-- / .row --> | |
| {/if} | |
| {/exp:channel:entries} | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
How to make your switch statement always closing.