You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needing more complex things I have tried to use multi-lines filter scripts, but DT actually do not parse them correctly. I am not sure if it is wanted in DT, it is why I'am putting it here.
It is possible to hack it by onelining the script by putting it inside a anonymous function and executing it (function() { -- fun stuff here -- })()
It seem that the problem come from the dwarfmodelproxy.cpp matches = matches && m_engine->evaluate("(" + scripts.join(") && (") + ")").toBool();
as the multilines get put between parenthesis. I could be fixed by replacing this line by the following : for (int i = 0; i < scripts.size(); ++i) { matches = matches && m_engine->evaluate( scripts.at(i) ).toBool(); }
The text was updated successfully, but these errors were encountered:
Hi there,
Needing more complex things I have tried to use multi-lines filter scripts, but DT actually do not parse them correctly. I am not sure if it is wanted in DT, it is why I'am putting it here.
It is possible to hack it by onelining the script by putting it inside a anonymous function and executing it
(function() { -- fun stuff here -- })()
It seem that the problem come from the dwarfmodelproxy.cpp
matches = matches && m_engine->evaluate("(" + scripts.join(") && (") + ")").toBool();
as the multilines get put between parenthesis. I could be fixed by replacing this line by the following :
for (int i = 0; i < scripts.size(); ++i) { matches = matches && m_engine->evaluate( scripts.at(i) ).toBool(); }
The text was updated successfully, but these errors were encountered: