Opposite of 'is' operator?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By andersmmg

I’m using the is operator to check if an object is a RigidBody for example, but I can’t fine a way to check if it’s not a RigidBody.
I’ve tried is not RigidBody, is !RigidBody, !RigidBody, all things that I could imagine working, but they all give script errors.
How is this meant to be done? Right now all I could get to work is a blank if statement, with the logic in the else section. This is not ideal and there must be some way this is meant to be done!

:bust_in_silhouette: Reply From: timothybrentwood

if not (your_variable is RigidBody):
I think the parenthesis are optional.