소스 파일명: testIf.groovy /* * Filename: testIf.groovy * * Purpose: Example using the conditional control structure syntax * if .... else ... * * Execute: groovy testIf.groovy [number] */ def printUsing() { println("Using: groovy testIf.groovy [number]") println("This determines whether the number is positive or not.") } if (args.length != 1) { printUsing() System.exit(1) } /////////////////////////..