Return.false: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
sierraw>Andrew Branscom
m 1 revision imported
 
m 2 revisions imported
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 16:58, 16 February 2025

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