Closed TeodoroFilippini closed 5 years ago
If we want a condition C to be evaluated only when InTest=true, we ought to write: !InTest || C
C
InTest=true
!InTest || C
So that in production, the condition above is true as a consequence of InTest=false, with no need to check what follows.
true
InTest=false
If we want a condition
C
to be evaluated only whenInTest=true
, we ought to write:!InTest || C
So that in production, the condition above is
true
as a consequence ofInTest=false
, with no need to check what follows.