if (isset($Name2)) {
$decdata = "Something: $Something1 ";}
else {
$decdata = "Something: $Something2";}
// add a page
$this->AddPage();
When generating PDF it always use the first $decdata if Name2 is defined and Name1 is not defined but if I do like
if ($Name) {
$decdata = "Something: $Something1 ";}
else {
$decdata = "Something: $Something2";}
// add a page
$this->AddPage();
It always use det second $decdata even if $name is defined and name2 is not.
Any suggest what the problem might be?