evaluating if an attribute exists using @isobject
Posted: Fri Apr 26, 2019 11:15 am
Hi!
I'm wondering if it's possible to check if a specific attribute exists for a group of data series using the @isobject function.
Thinking something like the code below, but my job is crashing saying that "some_attribute" is not defined. I'm sure my syntax is off.
Any help is appreciated!
Thanks,
Bob
string series_list = ""
for %x {%string_of_series}
!x = @isobject({%x}.attr(some_attribute))
if !x = = 0 then
string series_list = {series_list} + %x + " "
else
endif
next
I'm wondering if it's possible to check if a specific attribute exists for a group of data series using the @isobject function.
Thinking something like the code below, but my job is crashing saying that "some_attribute" is not defined. I'm sure my syntax is off.
Any help is appreciated!
Thanks,
Bob
string series_list = ""
for %x {%string_of_series}
!x = @isobject({%x}.attr(some_attribute))
if !x = = 0 then
string series_list = {series_list} + %x + " "
else
endif
next