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
what is the right format for branch macro defined value ?
Hi,
I'm trying to use a branch based on a macro value, but it always takes the wrong path (not matched) and no errors are thrown. What is the correct format to enter a macro value?
I've tried all of the following :
<operator activated="true" class="branch" compatibility="6.4.000" expanded="true" height="76" name="Branch" width="90" x="179" y="30">
<parameter key="condition_type" value="macro_defined"/>
use variations :
<parameter key="condition_value" value="%{lang}="en""/>
<parameter key="condition_value" value="%{lang}=="en""/>
<parameter key="condition_value" value="%{lang}=en"/>
<parameter key="condition_value" value="%{lang}==en"/>
<parameter key="condition_value" value="lang="en""/>
<parameter key="condition_value" value="lang=en"/>
etc. but none of them seemed to guide me through the right node.
Just to ensure I already have the format ok, what is the correct way to add macro lang should equal 'en' ?
I'm trying to use a branch based on a macro value, but it always takes the wrong path (not matched) and no errors are thrown. What is the correct format to enter a macro value?
I've tried all of the following :
<operator activated="true" class="branch" compatibility="6.4.000" expanded="true" height="76" name="Branch" width="90" x="179" y="30">
<parameter key="condition_type" value="macro_defined"/>
use variations :
<parameter key="condition_value" value="%{lang}="en""/>
<parameter key="condition_value" value="%{lang}=="en""/>
<parameter key="condition_value" value="%{lang}=en"/>
<parameter key="condition_value" value="%{lang}==en"/>
<parameter key="condition_value" value="lang="en""/>
<parameter key="condition_value" value="lang=en"/>
etc. but none of them seemed to guide me through the right node.
Just to ensure I already have the format ok, what is the correct way to add macro lang should equal 'en' ?
0
Answers
macro_defined simply checks whether the macro exists. What you want is actually an expression. See the example process below: Regards,
Marco