You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current implementation conditional display of values are evaluated to empty or not empty. E.g. '1=1' will evaluate to true as well as 1=2. Arithmetic and comparison operators in Label Expressions would add some really nice-to-have possibilities to a already great feature.
My use case is solely the comparison operators. Lets say I have properties on concepts that only should appear in the label up to a specific level where the level could be different from time to time. The deciding property could be "Level" and the value between 1 and 4. In the model itself I have a property named "Display level" set to 2. In that case I would like to decorate the concept with a prefix if the level is either 1 or 2. The label expression I would like to use then could be
Description
In the current implementation conditional display of values are evaluated to empty or not empty. E.g. '1=1' will evaluate to true as well as 1=2. Arithmetic and comparison operators in Label Expressions would add some really nice-to-have possibilities to a already great feature.
My use case is solely the comparison operators. Lets say I have properties on concepts that only should appear in the label up to a specific level where the level could be different from time to time. The deciding property could be "Level" and the value between 1 and 4. In the model itself I have a property named "Display level" set to 2. In that case I would like to decorate the concept with a prefix if the level is either 1 or 2. The label expression I would like to use then could be
${if:${property:Level <= $model{property:Display level}:${property:MyPrefixProperty} }$name
The text was updated successfully, but these errors were encountered: