Hello folks. First, thanks to all the guys who take their valuable time to answer questions here!
Do the 2 pieces of code below do the same exact thing? Is Code 2 just a different way of writing Code 1 or is there any advantage to the way Code 2 is written?
if(myFunction() == true)
apple = 56;
if(myFunction() == true)apple = 56;
I have seen this kind of code revision in a few sketches and thought I should ask.
Thank you for your replies!