Search Unity

Switch Statements

Discussion in 'Scripting' started by tommy81v, Feb 14, 2016.

  1. tommy81v

    tommy81v

    Joined:
    Feb 4, 2016
    Posts:
    8
    Hello to everyone,

    I am just curious to know in a switch statement, the default keyword can be used as a drop-through to handle any unmatched value?

    Thanks,
     
  2. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860