Is possible in my sketch to see what kind of arduino is connect?

Hi everybody I would like my sketch to be compatible with differents arduino boards with something like that:

if (Arduinoboard=uno)
  // do Thing A
else if (Arduinoboard=mega)
  // do Thing B
  // do Thing C

Is that possible, and how to do that? Thanks Patrick

Have a look to arduino predefined constants

Example here

Very interesting!! I think I can find what I expected!!!

Thanks a lot


de rien ;)