Nested if or case statement
Posted: Wed Jun 20, 2012 1:15 am
Hi,
Could you tell me how a nested if or a case statement could be programmed in E-Views please?
I want the following code to work: (But it doesnt :( )
if %name="UNEMPLOYMENT" then %vars="UP"
elseif %name="MIG" then %vars="MG"
elseif %name="DTV" then %vars="DT"
else %vars=%name
endif
Any help is greatly appreciated!
Thanks!
Could you tell me how a nested if or a case statement could be programmed in E-Views please?
I want the following code to work: (But it doesnt :( )
if %name="UNEMPLOYMENT" then %vars="UP"
elseif %name="MIG" then %vars="MG"
elseif %name="DTV" then %vars="DT"
else %vars=%name
endif
Any help is greatly appreciated!
Thanks!