Check object existence
Posted: Sun Mar 02, 2014 9:51 am
I tried to check some object existence by Scene.entityByGeomID(x)
But if x pointing object were non-existence, console said
Failed to find entity with geom id: #x
I tried this script
x is a random number
but a conditional sentence don't work from the beginning
Is there checking object existence method in algodoo script ?
sorry, I borrow google translate power
But if x pointing object were non-existence, console said
Failed to find entity with geom id: #x
I tried this script
- Code: Select all
Scene.entityByGeomID(x) == undefined ? {} : {}
x is a random number
but a conditional sentence don't work from the beginning
Is there checking object existence method in algodoo script ?
sorry, I borrow google translate power