Get ocl string attribute length

76 Views Asked by At

I need to check an string attribute length and I don't know what function I have to use, size() maybe?

Context Myclass inv:self.string_attribute->size() <7
1

There are 1 best solutions below

0
On

-> is for navigating from Collections.

. is for objects/values and an attribute is a value so:

...string_attribute.size()