<= && >= Java/Android Operators
<p>Im having a problem on this block of code. It always go on the "You're outside of the museum or Check your position again" toast :/ what do you think is the problem? Here is the code:</p>

<pre><code>    x3 = x3 * -1; //for example is 187
    y3 = y3 * -1;//for example is 698

    ImageView img = (ImageView) findViewById(R.id.imageView1);

    if(((x3 &lt;= 150) &amp;&amp; (x3 &gt;= 170)) &amp;&amp; ((y3 &lt;= 680) &amp;&amp; (y3 &gt;= 725))){
        img.setImageResource(R.drawable.map_1_full_lite);
        Toast.makeText(getBaseContext(), "You're currently on Section 1", Toast.LENGTH_LONG).show();
        currentSection = "sect_1";
    }else if(((x3 &lt;= 170) &amp;&amp; (x3 &gt;= 195)) &amp;&amp; ((y3 &lt;= 690) &amp;&amp; (y3 &gt;= 715))){
        img.setImageResource(R.drawable.map_2_full_lite);
        Toast.makeText(getBaseContext(), "You're currently on Section 2", Toast.LENGTH_LONG).show(); //this suppost to be the output
        currentSection = "sect_2";
    }else if(((x3 &lt;= 200) &amp;&amp; (x3 &gt;= 230)) &amp;&amp; ((y3 &lt;= 680) &amp;&amp; (y3 &gt;= 720))){
        img.setImageResource(R.drawable.map_3_full_lite);
        Toast.makeText(getBaseContext(), "You're currently on Section 3", Toast.LENGTH_LONG).show();
        currentSection = "sect_3";
    }else if(((x3 &lt;= 190) &amp;&amp; (x3 &gt;= 220)) &amp;&amp; ((y3 &lt;= 675) &amp;&amp; (y3 &gt;= 710))){
        img.setImageResource(R.drawable.map_4_full_lite);
        Toast.makeText(getBaseContext(), "You're currently on Section 4", Toast.LENGTH_LONG).show();
        currentSection = "sect_4";
    }else if(((x3 &lt;= 175) &amp;&amp; (x3 &gt;= 219)) &amp;&amp; ((y3 &lt;= 710) &amp;&amp; (y3 &gt;= 745))){
        img.setImageResource(R.drawable.map_5_full_lite);
        Toast.makeText(getBaseContext(), "You're currently on Section 5", Toast.LENGTH_LONG).show();
        currentSection = "sect_5";
    }else if(((x3 &lt;= 155) &amp;&amp; (x3 &gt;= 165)) &amp;&amp; ((y3 &lt;= 715) &amp;&amp; (y3 &gt;= 735))){
        img.setImageResource(R.drawable.map_6_full_lite);
        Toast.makeText(getBaseContext(), "You're currently on Section 6", Toast.LENGTH_LONG).show();
        currentSection = "sect_6";
    }else{
        Toast.makeText(getBaseContext(), "You're outside of the museum or Check your postion again", Toast.LENGTH_LONG).show();
    }
</code></pre>
