I have a radio button list of
'a' has value of 1, b=2, c=3, d=4, e=5
If 'a' is selected, I want its value of 1 to be assigned to X.
If 'b' is selected, I want its value of 2 to be assigned to X.
How do I code the above using
i) IF syntax
ii) the switch { case syntax?
Thanks.