The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
I don't the reason of the expression error.
Best Answer
-
liming Member Posts: 13 Learner IIChoose "Insert and evaluate" in "Insert macro". The corresponding is as following,
1
Answers
to quickly explain it: Macros are by default Strings. This means:
id < %{outlier}
is a comparison between a string and an integer, which does not work.
Evaluate allows you to interpret the string. In your case, it gets parsed and thus works. Interestingly you can also do things like
id < eval("sqrt("+%{outlier}+")")
which makes eval super strong.
Best,
Martin
Dortmund, Germany