Changes between Version 1 and Version 2 of Branch
- Timestamp:
- 11/22/10 18:48:43 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Branch
v1 v2 5 5 == Grammar == 6 6 {{{ 7 #!cobra 7 8 branch <variable> 8 9 on <value> [or <value>]... … … 29 30 == Examples == 30 31 {{{ 32 #!cobra 31 33 # Notice the keywords `branch` and 32 34 # `on` as well as the indentation under each `on` clause … … 53 55 and putting the statement on the same line 54 56 {{{ 57 #!cobra 55 58 x = 'toof' 56 59 branch x … … 63 66 You can have more than one value for a single `on` clause 64 67 {{{ 68 #!cobra 65 69 x = 2 66 70 branch x