Return.false

From AGI Wiki
Revision as of 22:30, 19 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''return.false''' command is an undocumented test command that does nothing except to return a value of false when called in an if command. == Syntax == return.false()...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The return.false command is an undocumented test command that does nothing except to return a value of false when called in an if command.

Syntax

return.false()

Remarks

The return.false command has no practical value at all, and is only included for completeness. It is recognized in WinAGI, but not in any other compilers.

Possible Errors

None.

Example

Code:
if(return.false())
  {
  print("this will never print");  [ because 'if' test will always be false
  }

if(!return.false())
  {
  print("this will always print"); [  because 'if' test will always be true
  }

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 0 (0x00 hex)

See Also

Test Commands