Does checking a function's Return Value, actually execute the function?

I have the following code:

myPlane.start();
  
  if (myPlane.start()) {
    myPlane.Move(0, 0, 0, "init", 10000);
  }

Is this redundant? Does checking the truth of the function "start()" actually execute the function itself or not?

Thanks,
Zachary

Does checking the truth of the function "start()" actually execute the function itself?

Yes.

if (myPlane.start()) { calls myPlane.start(), so it gets executed.
The line myPlane.Move(0, 0, 0, "init", 10000); will be executed if myPlane.start() retrurns "true".

Awesome. Thanks for such a quick response!

ZacharyBruno:
I have the following code:

myPlane.start();

if (myPlane.start()) {
    myPlane.Move(0, 0, 0, "init", 10000);
  }

The first call is redundant. The way you have it you are calling "start" twice. But you only check the result on the second call.