Difference between revisions of "FindCnt"

From Wiki
Jump to: navigation, search
m
Line 9: Line 9:
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
 
+
....
 +
loop:
 +
finditem %housesign G_5
 +
if #findcnt < 1
 +
{
 +
gosub placement
 +
}
 +
goto loop
 +
....
  
 
</pre>
 
</pre>

Revision as of 08:37, 18 August 2005

#findCnt

FindItem System Variables

Description

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

findItem #findID #findType #findX #findY #findZ #findDist #findKind #findStack #findBagID #findMod #findRep #findCol

Main_Page Documentation FindItem System Variables