objExists
string
objExists は、取り消し可能、照会不可能、および編集不可能です。
このコマンドは、指定した名前のオブジェクトが存在するかどうかによって、true または false を返します。| boolean | コマンドの結果 |
// Select an object if and only if it exists.
// Print a warning if it does not exist.
if( `objExists surface1` ) {
select surface1;
} else {
warning("No surface exists");
}