Translations:Manual:Pywikibot/Cookbook/Introduction/47/en

On the other side, if you import the script (that is the library mode), the condition evaluates to false, and nothing happens (just the lines on the main level of your script will be executed).