@Yes (JavaScript)

Returns the value 1.

Defined in

@Functions (JavaScript)

Syntax

@Yes() : int
Return value Description
int The value 1.

Usage

For "logical" values, @functions use the number 1 for true and 0 for false. The number 1 can be represented by @True (JavaScript) or @Yes (JavaScript)

Examples

. The number 0 can be represented by @False (JavaScript) or @No (JavaScript).

Do not use the JavaScript values true and false for "logical" @function values.

The following example shows how to test an @function that returns a "logical" value.
function p(stuff) {
	print("<<<" + stuff + ">>>");
}

if(@IsNewDoc() == @Yes())
	p("Creating new document");
else
	p("Opening old document");

/* Do not do this
if(@IsNewDoc())
	p("Creating new document");
else
	p("Opening old document");
*/