- This wiki is out of date, use the continuation of this wiki instead
TRUE
From FenixWiki
(Difference between revisions)
| Revision as of 14:35, 1 May 2007 (edit) FCR (Talk | contribs) ← Previous diff |
Revision as of 15:57, 1 May 2007 (edit) (undo) Sandman (Talk | contribs) Next diff → |
||
| Line 1: | Line 1: | ||
| == Definition == | == Definition == | ||
| - | '''INT''' | + | '''INT''' true |
| - | True is a [[constant]] | + | True is a [[constant]] [[int]]eger, equal to the value 1. It is used to state that something is true and not [[false]]. |
| == Example == | == Example == | ||
| <pre> | <pre> | ||
| - | + | Program example; | |
| - | if ( | + | Private |
| - | + | int b = true; | |
| - | end | + | Begin |
| - | </pre> | + | |
| + | if(b == true) | ||
| + | say("b was true! so b==1"); | ||
| + | else | ||
| + | say("b was not true! so b!=1"); | ||
| + | end | ||
| + | |||
| + | Loop | ||
| + | frame; | ||
| + | End | ||
| + | |||
| + | End</pre> | ||
| [[category:constants]] | [[category:constants]] | ||
Revision as of 15:57, 1 May 2007
Definition
INT true
True is a constant integer, equal to the value 1. It is used to state that something is true and not false.
Example
Program example;
Private
int b = true;
Begin
if(b == true)
say("b was true! so b==1");
else
say("b was not true! so b!=1");
end
Loop
frame;
End
End
