title: How to "do something" if 3 buttons clicked ? (I tried with this : )
body: <p>Im having troubles with one part of my code.
  Yesterday, I tried it and it was fully working, and now it is not working anymore.
  I really don't understand so if you guys see something, tell me !</p>
  <pre><code>var FERNC1 = document.getElementById('pc1');
  var FERNC2 = document.getElementById('pc11');
  var UNNC1 = document.getElementById('pc8');
  
  FERNC1.addEventListener('click', function () {
      fer1 = 1;
      bronze1 = 0;
      argent1 = 0;
      or1 = 0;
      platine1 = 0;
      diamant1 = 0;
      immortel1 = 0;
      console.log(fer1);
      FERNC2.addEventListener('click', function () {
          fer2 = 1;
          bronze2 = 0;
          argent2 = 0;
          or2 = 0;
          platine2 = 0;
          diamant2 = 0;
          immortel2 = 0;
          console.log(fer2);
          UNNC1.addEventListener('click', function () {
              un1 = 1;
              deux1 = 0;
              trois1 = 0;
              console.log(un1);
  
              if ((fer1 == 1 &amp;&amp; fer2 == 1 &amp;&amp; un1 == 1)) {
                  document.getElementById('pc88').classList.add('inactiveLink');
                  document.getElementById(&quot;s7&quot;).style.display = &quot;block&quot;;
                  document.getElementById(&quot;s8&quot;).style.display = &quot;none&quot;;
                  document.getElementById(&quot;s9&quot;).style.display = &quot;none&quot;;
              }
              else {
                  document.getElementById('pc88').classList.remove('inactiveLink');
                  document.getElementById(&quot;s7&quot;).style.display = &quot;none&quot;;
                  document.getElementById(&quot;s8&quot;).style.display = &quot;none&quot;;
                  document.getElementById(&quot;s9&quot;).style.display = &quot;none&quot;;
              }
          });
      });
  });
  </code></pre>
  <p>Thank you guys</p>