Added GlobalNewIf command with a test chapter