You need to close each If with an EndIf, otherwise the opening If must be satisfied for all following If statements.

Consider this, with indenting added:
 Code:
If InGroup ("A") = 1
  Run "\\....exe"
  If InGroup ("B") = 1
    Run "\\....exe"
    If Not (InGroup ("A") or InGroup ("B"))
      Run "\\....exe" 
; missing EndIfs added as Kix would see them
    EndIf
  EndIf
EndIf

What you probably want is really
 Code:
If InGroup ("A") = 1
  Run "\\....exe"
EndIf

If InGroup ("B") = 1
  Run "\\....exe"
EndIf

If Not (InGroup ("A") or InGroup ("B"))
  Run "\\....exe" 
EndIf


Glenn


Edited by Glenn Barnas (2008-10-27 04:38 PM)
Edit Reason: add example
_________________________
Actually I am a Rocket Scientist! \:D