数字の 1 を返します。
戻り値 | 説明 |
---|---|
int | 数字の 1。 |
JavaScript の true や false を @関数の論理値として使用しないでください。
以下の例では、論理値を返す @関数をテストしています。function p(stuff) {
print("<<<" + stuff + ">>>");
}
if(@IsNewDoc() == @True())
p("Creating new document");
else
p("Opening old document");
/* Do not do this
if(@IsNewDoc())
p("Creating new document");
else
p("Opening old document");
*/