title: Need for loop to check 2 conditions before continuing
body: <p>I'm currently developing a "Sokoban" game at a very basic level. I'm trying to make this for loop but cannot seem to complete it. My aim is to carry out an example of the movement code below, I feel my syntax is wrong in regards to adding another condition where it says "(diamondlist.Count) &amp; (Playerlist.Count). The error I am getting is "Operator '&amp;' cannot be applied to operands of type 'bool' and 'int'. I have tried to add double "&amp;&amp;" and this does not solve it eitheir, any help is appreciated - thanks :D</p>
  
  <pre><code>    protected override void Update(GameTime gameTime)
      {
          for (int i = 0; i &lt; (diamondlist.Count) &amp; (Playerlist.Count); i++)
          {
              if ((Playerlist[i].Position == diamondlist[i].Position) &amp;&amp; kb_old.IsKeyDown(Keys.W))
              {
                  if (currentMap.isWalkable(new Point(diamondlist[i].m_position.X, diamondlist[i].m_position.Y - 1)))
                      diamondlist[i].m_position.Y--;
              }
  </code></pre>