Two inputs joined with logic in functions

Thanks again for your great help and patience!