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: navigation, search

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