Select Case True
Case commentStr.Contains("10")
'foo
Case commentStr.Contains("15")
'bar
End Select
Note that with this construct, a maximum of one Case
will be executed.
(Also note that your C# friends can't do this with switch
, which requires constant expressions in the case
clauses :))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…