Help with programming an if .. case statement

Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\jayes\Desktop\English\try_2\try_2.ino: In function 'void loop()':

try_2:112: error: expected primary-expression before 'case'

if ( case 0xFFA25D == true ) {

^

try_2:112: error: expected ')' before 'case'

exit status 1
expected primary-expression before 'case'

Invalid library found in C:\Users\jayes\OneDrive\Documents\Arduino\libraries\RGB_LED: C:\Users\jayes\OneDrive\Documents\Arduino\libraries\RGB_LED
Invalid library found in C:\Users\jayes\OneDrive\Documents\Arduino\libraries\RGB_LED: C:\Users\jayes\OneDrive\Documents\Arduino\libraries\RGB_LED

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

if  ( case 0xFFA25D == true )

Stop and learn some basic C++ coding.

https://www.google.ca/search?q=arduino+if&oq=arduino+if&aqs=chrome..69i57j0j69i60l3j0.3487j0j7&sourceid=chrome&ie=UTF-8

https://www.arduino.cc/en/Reference/SwitchCase

.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks... Tom.... :slight_smile: