Wiki

Changes between Version 1 and Version 2 of Branch

Show
Ignore:
Timestamp:
11/22/10 18:48:43 (14 years ago)
Author:
todd.a
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Branch

    v1 v2  
    55== Grammar == 
    66{{{ 
     7#!cobra 
    78  branch <variable> 
    89    on <value> [or <value>]... 
     
    2930== Examples == 
    3031{{{ 
     32#!cobra 
    3133    # Notice the keywords `branch` and  
    3234    # `on` as well as the indentation under each `on` clause 
     
    5355and putting the  statement on the same line 
    5456{{{ 
     57#!cobra 
    5558    x = 'toof'  
    5659    branch x  
     
    6366You can have more than one value for a single `on` clause  
    6467{{{ 
     68#!cobra 
    6569    x = 2  
    6670    branch x