Code:
int MyFunc(int Blah)
{

if (Blah == 0 ) return 0;

return 1;

}
You can put if statements in user-defined functions.