Template:Both

{{#if:{{{2|}}}|{{#if:{{{3|}}}}|1|}}|}} Usage: 1

Returns 1 if both s1 and s2 are non-empty; otherwise returns the empty string.