Template:Is set

Outputs 1 if the given value is non-blank, else 0. This is useful in switch statements: