168
rated 0 times
[
170]
[
2]
/ answers: 1 / hits: 16322
/ 13 Years ago, sat, december 3, 2011, 12:00:00
I'm looking for a better way to implement a decision tree in javascript. Being very new to programming I have a very limited number of tools in my toolbox. The only ways I know to do this are:
.with a huge ugly hard to maintain and follow if else if statement
.I could use a switch/case statement and do a state machine type thing.
Suggestions and theories are appreciated. Also, small code examples would be very helpful. Thanks for taking a look.
Dale
More From » logic