diff --git a/src/lab/exp6/simulation/SwitchCase/basicControlFlow.js b/src/lab/exp6/simulation/SwitchCase/basicControlFlow.js index 6822a81c..8f2a76f1 100644 --- a/src/lab/exp6/simulation/SwitchCase/basicControlFlow.js +++ b/src/lab/exp6/simulation/SwitchCase/basicControlFlow.js @@ -221,7 +221,7 @@ window.view = { this.codeExecutionWithColour(); if (this.currentSiblingElement.className === 'break redClass') this.codeExecutionWithColourAndId('closeBrc1Id'); - if (1 <= model.inputNumber && model.inputNumber <= 6) { + if (1 <= model.inputNumber && model.inputNumber <= 5) { if (this.nextSiblingElement.id === 'holidayId') this.codeExecutionWithColourAndId('elseIfId'); else if (this.nextSiblingElement.id === 'workingdayId') { @@ -240,7 +240,7 @@ window.view = { this.setInnerHtml('outputDayId', 'INVALID INPUT'); } } - if (model.inputNumber === 7) { + if (model.inputNumber === 7 ||model.inputNumber===6) { if (this.nextSiblingElement.id === 'holidayId') { this.codeExecutionWithColour(); this.changeOpacity('holidayImage');