Thread:Extension talk:ParserFunctions/ if:A or B display text

I am trying to make a template display text if A or B has anything. like instead of: have it do:

Is there a way to do this?