This command will return a value of one if the terrain object exists, otherwise zero.

Syntax: 
Return Integer=TERRAIN EXIST(Terrain Number)