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()...")
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:
<syntaxhighlight lang="agi"> 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 }
</syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 0 (0x00 hex) |