Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
"Syntax for 'condition value' field in branch operator"
JoosBuijs
Hi,
I feel this is a stupid question that must be documented somewhere but my Google skills are not sufficient to find it.
I'm using the Branch operator to decide whether or not some operator should be executed. The input on the condition port is an exampleSet with 1 row, 2 columns: 'Row No.' and 'att1'. Now I want to test whether row 1, att1, contains a particular string. So I set the branch operator's condition type to 'attribute_value_filter' but the following condition values are not accepted:
=="myString"
"myString"
myString
etc.
Note that 'myString' should be contained in the field, it will not be an exact match.
Any help is appreciated!!!
Find more posts tagged with
AI Studio
Loops + Branches
Accepted answers
David_A
Hi,
the correct syntax is actually Attribute_Name = myString.
But the attribute_value_filter condition returns only true if all elements of the are equal to your string.
If you only want to check a specific value in your data, you can use the Extract Macro Operator with the "data_value" option and then use the expression condition type and use %{macroName} == "myString"
Best,
David
All comments
David_A
Hi,
the correct syntax is actually Attribute_Name = myString.
But the attribute_value_filter condition returns only true if all elements of the are equal to your string.
If you only want to check a specific value in your data, you can use the Extract Macro Operator with the "data_value" option and then use the expression condition type and use %{macroName} == "myString"
Best,
David
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups