This wiki is out of date, use the continuation of this wiki instead

TRUE

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
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''' True+'''INT''' true
-True is a [[constant]] which is equal to every odd integer. It is used to state that something is not [[false]].+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>
-VariableName = true;+Program example;
-if (variableName == true)+Private
- //do stuff+ 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
Personal tools