Attribute

General

How do I pass the attribute is from 0 to 10? And, how to make an attribute from two options, for example, "yes" or "no"?

6 September 2022 5:19:59 George

Add Comment

Dusan Rodina - softwareideas.net 7 September 2022 16:46:33

-

You can define it using the Constraint property of the attribute. Right-click on the desired attribute in the diagram editor, choose Properties from the context menu and enter the constraint into the Constraint box.

You can express the condition in textual way, e.g.:

- 0..10, 'yes' or 'no'

- self >= 0 and self <= 10, self = 'yes' or self = 'no'