Viagra, or sildenafil, is the medication primarily used to help erectile impairment , a state where men have challenges achieving or keeping an erection . Beyond the primary purpose, it can employed off-label for pulmonary hypertension and other medical conditions . However that Viagra functions