If-statement in Generate Attributes
marco_stuggi
New Altair Community Member
Hello Community,
I have a school/university project and I'm stuck. I also never really programmed but tried to search here and on Google and couldn't find a usefull (at least for me) solution.
The structure is the following:
T1Name T1Tag T2Name T2Tag ... T146Name T146Tag
x a y b x a
y b x a y b
I want to write an if statement within the Generate Attributes Function, if T* Tag=a then it should generate a new attribute with the Name given in T*Name. But I don't know how I can write that in Code.
I'm thankfull for every help!
Thanks
I have a school/university project and I'm stuck. I also never really programmed but tried to search here and on Google and couldn't find a usefull (at least for me) solution.
The structure is the following:
T1Name T1Tag T2Name T2Tag ... T146Name T146Tag
x a y b x a
y b x a y b
I want to write an if statement within the Generate Attributes Function, if T* Tag=a then it should generate a new attribute with the Name given in T*Name. But I don't know how I can write that in Code.
I'm thankfull for every help!
Thanks
Tagged:
0