Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
Generates a switch-type if statement. General form is:
...
elif <switchVar> <compare> <conditions[i]>:
    shards[i]
...

Arguments:
name = name of new shard, default None. If no name is specified
             a default name will be generated
switchVar = the switch variable as a string, e.g. 'event.type'(more...)

src/k/a/kamaelia-HEAD/Sketches/TG/soc2007/gui_final/ShardCompose.py   kamaelia(Download)
from ComponentShard import componentShard
from ModuleShard import moduleShard
from BranchShard import switchShard
from ClassShard import classShard
from FuncAppShard import funcAppShard

src/k/a/kamaelia-HEAD/Sketches/TG/gui/ShardCompose.py   kamaelia(Download)
from ComponentShard import componentShard
from ModuleShard import moduleShard
from BranchShard import switchShard
from ClassShard import classShard
from FuncAppShard import funcAppShard