user18727693
user18727693

Reputation:

Get ocl string attribute length

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

Upvotes: 1

Views: 150

Answers (1)

Ed Willink
Ed Willink

Reputation: 1498

-> is for navigating from Collections.

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

...string_attribute.size()

Upvotes: 1

Related Questions