sexta-feira, 25 de março de 2016

BP Compendium: Switch on Int

Switch on Int


Determines the flow of execution according to the integer input value.

Input

  • Selection: Integer value that determines the output. If the value is not found, the output happens in the default pin.


Example Usage

The difficulty of a game is stored in an integer variable named "Difficult" that can have the values from 0 to 3. The total number of enemies is set according to the difficulty.


Click to enlarge


In another example, the “Switch On Int” is used to choose a response in accordance with the number of the question that was asked.

Click to enlarge