Home > Support > NI Product Manuals > LabVIEW Communications System Design Suite 1.0 Manual
Version:

    Case in a switch statement. Use case and switch together. The principal calling structure of a switch statement is:

    switch expression

    case expression

    statement, ... , statement

    ...

    otherwise

    statement, ... , statement

    end

    The otherwise case is optional. MathScript executes the first matching case.

    Syntax

    case expression
    A = 1
    switch A
      case 1
      A = A + 1
    otherwise
      A = A - 1
    end