Iteration (TQL Param): Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
Maxim@tygron.com (talk | contribs)
Created page with "{{Param TQL|suppresscategory=true|allowselflinks=true| <onlyinclude> {{Param TQL|tabletype=row|attribute=ITERATION|type={{Boolean}}|description=Query only executes when the current Iteration matches this value|polygon=false|}} </onlyinclude> }} {{article end |notes= * When false, only Buildings that are not part of the road system are considered. }} {{TQL param nav}}"
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Param TQL|suppresscategory=true|allowselflinks=true|
{{Param TQL|suppresscategory=true|allowselflinks=true|
<onlyinclude>
<onlyinclude>
{{Param TQL|tabletype=row|attribute=ITERATION|type={{Boolean}}|description=Query only executes when the current [[Simulation Core|Iteration]] matches this value|polygon=false|}}
{{Param TQL|tabletype=row|attribute=ITERATION|type=positive integer|description=Query only executes when the current [[Simulation Core|Iteration]] matches this value|polygon=false|}}
</onlyinclude>
</onlyinclude>
}}
}}
Line 7: Line 7:
{{article end
{{article end
|notes=
|notes=
* When false, only [[Building]]s that are not part of the road system are considered.
* Queries with these clauses are '''only''' executed when the current [[Simulation Core|Iteration]] matches the value of this clause.
* If the current Iteration is not equal to the value of this clause, a cell in an [[Excel]] with this query is not written to. This behavior makes it different from other queries, which generally write a default value of 0.
* The same holds for update queries, which are also only executed when the iteration matches the value of this clause, and are ignored otherwise.
}}
}}


{{TQL param nav}}
{{TQL param nav}}

Latest revision as of 08:38, 20 March 2025

Notes

  • Queries with these clauses are only executed when the current Iteration matches the value of this clause.
  • If the current Iteration is not equal to the value of this clause, a cell in an Excel with this query is not written to. This behavior makes it different from other queries, which generally write a default value of 0.
  • The same holds for update queries, which are also only executed when the iteration matches the value of this clause, and are ignored otherwise.