sgs_GetIndex [function]

SGSBOOL sgs_GetIndex( sgs_Context* C, sgs_Variable obj, sgs_Variable idx, sgs_Variable* out, int isprop )

Retrieve index/property idx from the specified variable obj to the position out, specifying retrieval type via isprop, return if successful.