Concept Framework 2.0 documentation Contents | Index

standard.lang.serialize.ASSERT

Name Version Deprecated
ASSERT version 1.0 no

Prototype:
boolean ASSERT(boolean condition[, string szErrorMessage=""])

Parameters:
condition      if false, a run time error will be fired
szErrorMessage      the error message text

Description:
Asserts for a condition.

Example:
...
var a=0, b=5;
ASSERT(a!=0,"Division by 0");
echo b/a;
...

Returns:
Returns true if the condition is true, false otherwise.

Documented by Eduard Suica, generation time: Fri Jan 21 18:06:20 2011 GMT(c)2011 RadGs Software