Select active (TQL): Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Select TQL|<onlyinclude>
{{Select TQL|<onlyinclude>
{{Select TQL|tabletype=row|attribute=ACTIVE|unit={{boolean}}|description=Returns whether an [[Item]] is active in this Simulation|fixed=1|polygon=false|}}</onlyinclude>
{{Select TQL|tabletype=row|attribute=ACTIVE|unit={{boolean}}|description=Returns whether an [[Item]] is active in this [[Simulation]]|fixed=1|polygon=false|}}</onlyinclude>
}}
}}
==Allowed clause parameters==
==Allowed clause parameters==
Line 19: Line 19:
:: ''Returns whether the [[Net Setting]] ELECTRICITY_ACTIVE is considered active; I.e. the setting has a value of true.''
:: ''Returns whether the [[Net Setting]] ELECTRICITY_ACTIVE is considered active; I.e. the setting has a value of true.''


{{article end
|api=* [[Api session query]]
}}
{{TQL nav}}
{{TQL nav}}

Latest revision as of 12:32, 6 July 2026

Allowed clause parameters

Examples

  • SELECT_ACTIVE_WHERE_AREA_IS_5
Returns whether the Area with Item ID 5 is considered active; I.e. the area has an ACTIVE Attribute that has a value that is larger than 0.
  • SELECT_ACTIVE_WHERE_NET_TYPE_IS_ELECTRICITY
Returns whether the Net Setting ELECTRICITY_ACTIVE is considered active; I.e. the setting has a value of true.

API Endpoints