Fixed again IA after little refactor
Changed syntax for if-then-else statements, apparently not compatible with "dash"