and logical instruction (&&)

Why does my program using (&&) instruction yield an opposite result when uploaded to Arduino UNO?

Good question! For answers, please read and follow the instructions in the "How to use the forum" post.

Use CTRL T to format your code.
Attach your sketch between code tags
[code]Paste your sketch here[/code]

Show us a good schematic of your circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.
Posting images:

Why does my program using (&&) instruction yield an opposite result when uploaded to Arduino UNO?

Opposite to what ?

Please follow the advice on posting code in Read this before posting a programming question

In particular note the advice to Auto format code in the IDE and using code tags when posting code here

deck_m:
Why does my program using (&&) instruction yield an opposite result when uploaded to Arduino UNO?

  1. Because your code is wrong
  2. Because what you're expecting is wrong

I have no idea which because I can't see any program or any result or what your result is "opposite" to.

Steve

deck_m:
Why does my program using (&&) instruction yield an opposite result when uploaded to Arduino UNO?

It doesn't.