interpreter_nameexists

特定の文字列を名前が使用されているかどうかを表す値を取得します。


taiseiue | 2022-01-16

定義

名前空間: Alice.Interpreter
アセンブリ: Losetta.dll
ソースコード: Alice.Interpreter.cs

interpreter_nameexists(string)

特定の文字列を名前が使用されているかどうかを表す値を取得します。

AliceScript
namespace Alice.Interpreter;
public bool interpreter_nameexists(string name);
引数
name 調べる名前を表す文字列。
戻り値
bool nameが使用されていればtrue、それ以外の場合はfalse

対応
AliceScript GM、2.0、2.1、2.2、2.3、3.0、4
AliceSister GM、2.0、2.1、2.2、2.3、3.0、4
Losetta 0.8、0.9、0.10、0.11

次の例では、alphaという変数を定義して、その名前が使用されていることを確認します。

AliceScript
using Alice.Interpreter;

var alpha;
interpreter_nameexists("alpha");