The command I used is this:
/execute @e[rm=1,r=9,type=!ArmorStand] ~ ~ ~ summon LightningBolt ~ ~ ~
Whenever I run the command it throws the error "That entity cannot be found".
However, if I remove the type=!ArmorStand part it works fine.
Comments 4
@md_5 is correct. The two cannot be used interchangeably as they are completely separate operators (the latter not currently registered to actually do anything).
EDIT: Anon Ymus is correct, my bad. I was thinking in reverse.
No, in fact =!
is correct. See http://minecraft.gamepedia.com/Selector#Target_selector_arguments.
You want != I think.