if-then-else and switch-case : rulesets are the way