Skip to content

Case break

Description

The BREAK statement needs to be used to end the current CASE branch in a Select Case structure.

Syntax

Select Case <Expression>
    Case <Constant>
        <Statements>
    Break
End

Sample

select case {?VATOption}
    case 1
        return "0.0 %"
    break
    case 2
        return "6.0 %"
    break
    case 3
        return "21.0 %"
    break
end

Notes

  • The constant values should only appear once; if they appear multiple times the first compare wins.