0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>Now that you have learned how to use negations, we can describe a new logic of the program that will work without errors.</p>
1
<p>Now that you have learned how to use negations, we can describe a new logic of the program that will work without errors.</p>
2
<p>We need to combine two separate checks into one single check. The project can be started if:</p>
2
<p>We need to combine two separate checks into one single check. The project can be started if:</p>
3
<ul><li>there are enough developers</li>
3
<ul><li>there are enough developers</li>
4
<li><em>and</em>they have the knowledge of the technologies</li>
4
<li><em>and</em>they have the knowledge of the technologies</li>
5
<li><em>and</em>no developers are on vacation</li>
5
<li><em>and</em>no developers are on vacation</li>
6
<li><em>and</em>no developers are out sick.</li>
6
<li><em>and</em>no developers are out sick.</li>
7
</ul><p>Implementing this logic in the code is quite easy, because negations can be combined with other logical operators. Example:</p>
7
</ul><p>Implementing this logic in the code is quite easy, because negations can be combined with other logical operators. Example:</p>
8
var conditionOne = true; var conditionTwo = true; var conditionThree = false; if (conditionOne && conditionTwo && !conditionThree) { // code will be executed }<p>It’s time to complete the third program of this work day!</p>
8
var conditionOne = true; var conditionTwo = true; var conditionThree = false; if (conditionOne && conditionTwo && !conditionThree) { // code will be executed }<p>It’s time to complete the third program of this work day!</p>