if (($q1 == false && $q2 == false) && currentIndex == 0) {
return false;
}else{
return true;
}
return !( !$q1 && !$q2 && currentIndex == 0 );
Пусть A = $q1, B = $q2, C = (currentIndex == 0), тогда
0) !( !A & !B & C ) =>
1) !( !(A | B) & C ), пусть X = (A | B) =>
2) !( !X & C ) =>
3) X | !C =>
4) A | B | !C
return $q1 || $q2 || currentIndex != 0;