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
(SOLVED) How to check for missing attribute value in a script?
Hi, can anyone help? I'm a bit new to this.
I'm using a script inside studio. I'm trying to find out if my
I have tried some of these so far:
Thanks
I'm using a script inside studio. I'm trying to find out if my
example["myAttribute"]value is missing.
I have tried some of these so far:
example["myAttribute"]==?I just want to check for a null value.
example["myAttribute"]=='?'
example["myAttribute"]==null
isnull(example["myAttribute"])
missing(example["myAttribute"])
example["myAttribute"].missing()
etc..
Thanks
0
Answers
Woops!
Actually this DOES work: The only reason I've been scratching my head for so long was because I incorrectly typed myAttribute, and the script didn't warn me for using an attribute name that doesn't exist. Anyway - solved!