RosettaCodeData/Task/Flow-control-structures/Visual-Basic-.NET/flow-control-structures-4.vb

10 lines
139 B
VB.net
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Sub Foo1()
If Not WorkNeeded() Then Exit Sub
DoWork()
End Sub
Sub Foo2()
If Not WorkNeeded() Then Return
DoWork()
End Sub