In computing, IIf (an abbreviation for if) is a function in several editions of the Visual Basic programming language, related languages, and on spreadsheets that returns one of its two parameters based on the evaluation of an expression. It is similar to a conditional statement.