MSDN is your friend:
http://msdn.microsoft.com/library/en...ml/vastmIf.asp

It should be:
Code:
If RUN1.value=2 Then
  DISPLAY1.value=2
Else
  DISPLAY1.value=1
End If