forked from: throw で条件分岐

余り効率的ではなく、型も使えないですが…

switch true 式条件分岐
@author jc at bkzen