checking the model of an entity

Is there a way to check to see if an entity has a certain model?

Im trying to identify an entity based off of its model, like identifying a buggy. If the model matches, then it activates something else

**[Entity.GetModel

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.GetModel)**

[lua]if ent:GetModel() == “modelname” then
– Code
end[/lua]

To identify a buggy you might want to test the entity with IsVehicle first.
**[Entity.IsVehicle

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.IsVehicle)**

okay, that seemed to work, but i want to try and make it a bit more simple. What i want is for it to check to see if the model is not something

like
[lua]
if (Ent:GetModel() == “models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl”) then return end
[/lua]

I want it to check to see if its not “models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl”
and then if its not then to return and end

[lua]if Ent:GetModel() ~= “models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl” then return end[/lua]

or

[lua]if not Ent:GetModel() == “models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl” then return end[/lua]