Difference between revisions of "Error Messages/40020"
AManandhar (talk | contribs) (Created page with '= Error Message Examples = The condition for "while" evaluates to an array. It should evaluate to true(non-zero) of false(zero). = Cause = This error is caused when an array …') |
AManandhar (talk | contribs) m (→Cause) |
||
Line 12: | Line 12: | ||
a++;<br> | a++;<br> | ||
}<br> | }<br> | ||
− | + | ... | |
</code> | </code> | ||
Revision as of 01:57, 28 January 2010
Error Message Examples
The condition for "while" evaluates to an array. It should evaluate to true(non-zero) of false(zero).
Cause
This error is caused when an array is passed as the condition of a while loop. The following code will produce this error as Time is an array and "Time > 5" will evaluate to an array.
Var a:= 5;
While( Time > 5 ) Do{
a++;
}
...
Remedies
Correct the condition for the while loop so it evaluates to true or false.
Comments
<comments />
Enable comment auto-refresher