if true then foo() { echo 'I am in foo function' } fi foo