2014-02-25, 06:59 PM
VerrKol Wrote:You need a hierarchy of switches. The order should be based on Venn-diangram style possibilities or you can draw the classic logic diagram.
Something like
Code:if (master = 0)
{
if (gear = P)
{
if (inside stuff) {}
if (outsides stuff) {}
if (dashboard stuff) {}//not necessarily in this order
}
}
Hmm okay! I feel like this could get very long and messy. Could you maybe give me an example of using a switch statement instead of nested if's?

