Fuzzy logic

Some programming inviroments are ideal for using fuzzy logic.
A program will adapt to the scenario that is measured to run code that is best suited at that moment.