{{If first display both|1|2}}

If 2 is set, then 12 will be returned.