Query AdoScript AQL_EXPRESSION using variable names?Query AdoScript AQL_EXPRESSION using variable names?RE: Query AdoScript AQL_EXPRESSION using variable names?Mateusz Dziedzichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=13407232018-08-10T10:37:24Z2018-08-10T10:34:42ZHallo Martin,<br /><br />you can use the „+“ operator for concatenation of Strings. <br /><br />Example: Get all objects of class B, which are inside the class V:<br />1) Without a variable: <div class="code"><span class="code-lines">1</span>CC "Modeling" GET_ACT_MODEL<br /><span class="code-lines">2</span>CC "AQL" EVAL_AQL_EXPRESSION expr:("<\"V\"><-\"Is inside\">\"B\"<") modelid: (modelid)<br /></div><br />2) Using a variable:<div class="code"><span class="code-lines">1</span>CC "Modeling" GET_ACT_MODEL<br /><span class="code-lines">2</span>SETL sClass:("V")<br /><span class="code-lines">3</span>CC "AQL" EVAL_AQL_EXPRESSION expr:("<\"" + sClass + "\"><-\"Is inside\">\"B\"<") modelid: (modelid)<br /></div>Mateusz Dziedzic2018-08-10T10:34:42ZQuery AdoScript AQL_EXPRESSION using variable names?Martin Paczonahttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=13406272018-08-10T08:52:21Z2018-08-10T08:51:27ZHello,<br /><br /><strong>How can i use variables in AdoScript queries ?</strong><br /><br />Example Code:<br />CC "AQL" EVAL_AQL_EXPRESSION expr:"({\"A\":\"B\"}<-\"Is inside\")" modelid: (modelid)<br /><br />This code works is gets all elements inside element "A" which has the type "B".<br /><br />But now i <strong>want to use instead of the hardcoded string "A" a variable to get the elements inside depending on the variable.<br /></strong><br />Can you please help me with the syntax and post also the link to the documenation.<br /><br />BR<br />MartinMartin Paczona2018-08-10T08:51:27Z