Defines a recursive Factorial function using the IIf function for conditional logic.