>>41

Help
>The Game Maker Language (GML)
>Game play
>Miscellaneous variables and functions

variable_global_exists(name)
Returns whether a global variable with the given name (a string) exists.
指定されたグローバル変数が存在するかどうかを返す

variable_local_exists(name)
Returns whether a local variable with the given name (a string) exists for the current instance.
関数が実行されたインスタンス内に指定された変数が存在するかどうかを返す


変数が存在するかどうかは、これらの関数で調べることができる。
他にもいろいろあるので詳しくは該当箇所を見て欲しい。