Template:Ifor

This template applies a logic function to the contents of two parameters to return a then or else.