 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.analytica.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xjiang</id>
	<title>Analytica Docs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.analytica.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xjiang"/>
	<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php/Special:Contributions/Xjiang"/>
	<updated>2026-05-25T04:33:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Error_Messages/40020&amp;diff=16861</id>
		<title>Error Messages/40020</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Error_Messages/40020&amp;diff=16861"/>
		<updated>2010-02-19T19:39:10Z</updated>

		<summary type="html">&lt;p&gt;Xjiang: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Error Message Examples =&lt;br /&gt;
&lt;br /&gt;
 The condition for &amp;quot;while&amp;quot; evaluates to an array. It should evaluate to true(non-zero) of false(zero).&lt;br /&gt;
&lt;br /&gt;
= Cause =&lt;br /&gt;
&lt;br /&gt;
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 &amp;quot;Time &amp;gt; 5&amp;quot; will evaluate to an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
Var a:= 5; &amp;lt;br&amp;gt;&lt;br /&gt;
While( Time &amp;gt; 5 ) Do{&amp;lt;br&amp;gt;&lt;br /&gt;
a++;&amp;lt;br&amp;gt;&lt;br /&gt;
}&amp;lt;br&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Remedies =&lt;br /&gt;
&lt;br /&gt;
Correct the condition for the while loop so it evaluates to true or false.&lt;br /&gt;
&lt;br /&gt;
== Suggested revised message ==&lt;br /&gt;
&lt;br /&gt;
In a construct &amp;quot;WHILE &amp;lt;b&amp;gt; DO &amp;lt;e&amp;gt;&amp;quot;, the condition &amp;lt;b&amp;gt; should be a scalar (true(non-zero) or false(zero)), but not an array.  See the User Guide Chapter &amp;quot;Procedural Programming&amp;quot; section on &amp;quot;Ensuring Array Abstraction&amp;quot; on how to deal with this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;comments /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xjiang</name></author>
	</entry>
</feed>