IDL can be a bit overwrought with if statements. The basic "if then else if then" statement, as you said, could be something like:
if a eq 0 then print, 'the variable a equals 0' else $
if a eq 1 then print, 'the variable a equals 1' $
else print, 'the variable is something else'
For multiple lines within an if statement, instead of using a $ to continue the line, you could use something like:
if a eq 0 then begin
print, 'the variable a equals 0'
print, 'more stuff on this line'
endif else if a eq 1 then begin
print, 'the variable a equals 1'
print, 'another line'
endif else begin
print, 'a is something else'
print, 'yet another line'
endelse
Lastly, to evaluate if a variable is in a vector depends on exactly what you want to do and what is in your array, but one option is to use the where function. One example to show how it works:
a=2
b=[1,2,2,3]
result = where(a eq b)
print, result
if result[0] ne -1 then print, 'a is in b' $
else print, 'a is not in b'
There is probably a much better way of doing this as well. Perhaps a case statement.