
instance_exists() value issues
Trying to check whether or not objects exist and it's not reading the values correctly.

Code:
ship=(choose("rnd","values..."))
i=(string("obj_sm")+string(ship))
if !instance_exists(i)
{//stuff}
instance_exists(obj_smrnd) says the object doesn't exist.
BUT
instance_exists(i) or
instance_exists("obj_sm")+string(ship))says it does exist.
//the object was really non-existantAny ideas why this is or how to remedy it?
---
Edit:nvm got it to work, seems the instance_exists() was treating the object like a string.