# Example of parameter lists and argument type checking. greet(bool doprint, int i, string s) { if ${doprint}; then while [ ${i} -gt 0 ]; do printf '%s\n' "${s}" i=$((${i} - 1)) done fi } main() { greet true 3 'Hello, world!' return 0 }