Y (TQL)

From Tygron Support wiki
Revision as of 09:41, 15 May 2026 by Frank@tygron.nl (talk | contribs) (Created page with "Instead of specifying a clause parameter with a particular Item ID, this parameter can also be specific with 'Y'. The result of placing an Y for a clause parameter's value, is that a single TQL statement is replaced by mutliple unique TQL statements, with each one an Item ID that can be found in the project data, for that Clause Parameter. Internally, the resulting TQL statements are placed in an array of arrays and the result will be an array of TQL result arrays....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Instead of specifying a clause parameter with a particular Item ID, this parameter can also be specific with 'Y'. The result of placing an Y for a clause parameter's value, is that a single TQL statement is replaced by mutliple unique TQL statements, with each one an Item ID that can be found in the project data, for that Clause Parameter. Internally, the resulting TQL statements are placed in an array of arrays and the result will be an array of TQL result arrays.

For example, the TQL statement

SELECT_NAME_WHERE_NEIGHBORHOOD_IS_Y

is internally replaced with a list of TQL statement arrays, separated by comma's,

 [ SELECT_NAME_WHERE_NEIGHBORHOOD_IS_0 ], [ SELECT_NAME_WHERE_NEIGHBORHOOD_IS_2 ], [ SELECT_NAME_WHERE_NEIGHBORHOOD_IS_3 ] , [ SELECT_NAME_WHERE_NEIGHBORHOOD_IS_5

Its result will be a list of names, separated by comma's, for example:

["Mayfair"], ["Soho"], ["Marylebone"], ["Hyde Park"]

Clause Parameters

The Y value can be used in the following TQL Clause parameters: