Table Of Contents

switch

Version:
    Last Modified: March 15, 2017

    Specifies a switch in a switch statement.

    Use case and switch together. The general calling structure of a switch statement is:

    switch expression

    case expression

    statement, ... , statement

    ...

    otherwise

    statement, ... , statement

    end

    The otherwise case is optional.

    Syntax

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

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics