I want the result to be a string with $rvar1: $rvar1d, $rvar2: $rvar2d
I used the != to see if $rvar1 is not empty.
What I want is a working piece of the code.
Would someone help out.
Regards Spencer
$result=
if ($rvar1 != "") {"$rvar1: $rvar1d, ";
}
if ($rvar2 != "") {"$rvar2: $rvar2d";
}