For example:
Select Case (x)
Case 1
If ... Then
***Break***
End If
Response.Write( ... )
Case Else
Response.Write( ... )
End Select
Select Case is not broken from. Neither is If.
Syntax:
Select Case testexpression
[Case expressionlist-n
[statements-n]] . . .
[Case Else expressionlist-n
[elsestatements-n]]
End Select
Source
VBScript's equivalent of break is Exit. And it's present in the following forms:
Exit Do
Exit For
Exit Function
Exit Sub
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With