You want this:
dupe = !dupe || false;
However, note that if
dependent on whether dupe is true or not, dupe is turned off
You are setting dupe to false
if it's true
, and false
if it's false
, that means it's always going to be false
.
So you might as well do this:
dupe = false;