l><span class="arg">

    <li>
	  <strong>#1</strong>: A named table.
    </li> 
    
  
    <li>
	  <strong>#2</strong>: A string with the chosen attribute of the named table.
    </li> 
    
  
  </span></ul>







<h3>Usage</h3>
<pre class="example"><code><span class="id">data</span> = {<span class="id">protocol</span> = <span class="string">"udp"</span>}

<span class="function">switch2</span>(<span class="id">data</span>, <span class="string">"protocol"</span>):<span class="id">caseof</span>{
    <span