Simple question..I hope

Blitz3D Forums/Blitz3D Programming/Simple question..I hope

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Not realy a 3d thing but its for my 3d game..

I have several objects door1,door2,door3 etc etc.
I want to use a piece of code which can be called generically using the numeric part of the name as the identifier.

eg something like

If door(x)= ????? then ?????

Any ideas