It is a check to see if the script in which this is present, is being executed as a program or if it being called from an external program. If it is being executed as a standalone program, the code within the if statement will be executed, or else it won't be.