Simple question..I hope

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

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, 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