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

FALSE

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 17:26, 2 May 2007 (edit)
Sandman (Talk | contribs)
m (False moved to FALSE)
← Previous diff
Revision as of 11:05, 7 July 2007 (edit) (undo)
Sandman (Talk | contribs)

Next diff →
Line 1: Line 1:
== Definition == == Definition ==
-'''INT''' false+'''INT''' FALSE
False is a [[constant]] [[int]]eger, equal to the value 0. It is used to state that something is false and not [[true]]. False is a [[constant]] [[int]]eger, equal to the value 0. It is used to state that something is false and not [[true]].
Line 11: Line 11:
Begin Begin
 + // comparison with the constant FALSE
if(b == false) if(b == false)
 + say("b was FALSE! so b==0");
 + else
 + say("b was not FALSE! so b!=0");
 + end
 +
 + // checking the integer itself
 + if(!b)
say("b was false! so b==0"); say("b was false! so b==0");
else else
- say("b was not false! so b!=0");+ say("b was true! so b!=0");
end end

Revision as of 11:05, 7 July 2007

Definition

INT FALSE

False is a constant integer, equal to the value 0. It is used to state that something is false and not true.

Example

Program example;
Private
    int b = false;
Begin

    // comparison with the constant FALSE
    if(b == false)
        say("b was FALSE! so b==0");
    else
        say("b was not FALSE! so b!=0");
    end

    // checking the integer itself
    if(!b)
        say("b was false! so b==0");
    else
        say("b was true! so b!=0");
    end

    Loop
        frame;
    End

End
Personal tools