I want a simple way to replace the values of several variables (let's say varlist A) conditional on the values of other variables. In my case to every name of each variable in A there corresponds a modified name in B as folllows:
A (var1 var2 var3 ...)
B (_var1 _var2 _var3 ...)
So I would like to replace the value of var1 by that of _var1 if var1 is missing