Perhaps spell it out dead simple: +1 for truthy open -- -1 for truthy close, 0 for neither or both