# case

## Syntax

    case condition

## Description

A case statement specifies the value that if matching the contents of the variable, will run the code below it. Use this command in combination with case, endcase, select and endselect to create a select statement.

## Example

    state = 1

    select state
        case 1:
            print ( "state is 1" )
        endcase
        case 2:
            print ( "state is 2" )
        endcase
    endselect