Difference between revisions of "FindCnt"

From Wiki
Jump to: navigation, search
Line 1: Line 1:
{{header|FindItem|ro|The [[Var_findCnt|#findCnt]] system variable contains the number of objects that matches what was searched for with the [[findItem|findItem]] command.}}
+
{{header|FindItem|ro|The #findCnt system variable contains the number of objects that matches what was searched for with the [[findItem]] command.}}
  
{{Example|....
+
== Example ==
 +
<pre>....
 
loop:
 
loop:
 
finditem %housesign G_5
 
finditem %housesign G_5
Line 9: Line 10:
 
}
 
}
 
goto loop
 
goto loop
....}}
+
....</pre>
  
 
{{footer}}
 
{{footer}}

Revision as of 07:33, 27 August 2005

The #findCnt system variable contains the number of objects that matches what was searched for with the findItem command.

Example

....
loop:
finditem %housesign G_5
if #findcnt < 1
{
gosub placement
}
goto loop
....

See also

Main Page Documentation