current stable:
0.99.6
unstable:
cvs (0.99.7)
General
  Home / News
  About
  Contact
  The Team

Obtaining
  Download
  Source Tarball
  CVS Web View
  Misc. Files

Documentation
  Introduction
The Manual
  Download [html]
  Download [pdf]
  View Online
API
  Download [html]
  View Online
Resources
  Script Examples

Developer
  Introduction
Developer Guide
  Download [html]
  Download [pdf]
  View Online
Ferite C API
  Download [html]
  View Online




Open Source Approved

SourceForge Logo
KwMap.net - browse the Keyword Map of ferite.org

[previous] Variables[up][toc]Operators [next]


Expressions

Almost everything written in ferite is an expression - they are the building blocks of a program - they are combined to build other expressions which are in turned used in others using operators. Expressions are built up using various operators, variables and other expressions, an example being say that adding of numbers, or creating an instance of a new object. Expressions are made clearer when discussing operators as these are what are used to build them.

Truth Values

What constitues a truth value?

  • A number that is not zero is considered as true, this also means that negative values are also true. It has to be noted that if a number has switched into real format it is never likely to be considered false. Currently ferite deals with this by binding false to the range ± 0.00001 (NB. This is likely to change later).

  • A string that has zero characters is considered false, otherwise it's true.

  • An array with no elements is false, otherwise is considered true.

  • An object is considered to be false if it doesn't reference any instantiated object.

  • A void variable can't be true.

There are currently two keywords that can be used 'true' and 'false' these are of type number.

    Example:
    number shouldKeepDoingThings = true;
    					


[previous] Variables[up][toc]Operators [next]
ferite et al © 2000-2004, Chris Ross