Skip to main content

If

If[condition,t,f] gives t if condition evaluates to True, and f if it evaluates to False. 

If[condition,t,f,u] gives u if condition evaluates to neither True nor False.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.