archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
952 stars 268 forks source link

Small addition to label expression wiki #930

Closed fredmeu closed 1 year ago

fredmeu commented 1 year ago

Could you please add some examples to the label expression wikipage on how to format the condition part in a "if then else" expression

Trying to do some conditional labelling based on the viewpoint

Phillipus commented 1 year ago

Hi, there are a couple of examples there at the end of the "Examples" table. But, generally, perhaps there needs to be more examples for all the expressions.

Perhaps we can crowd-source this? If anyone has any good examples of label expressions please add them to this issue.

fredmeu commented 1 year ago

Thanks for the quick reply. I think most descriptions / examples are pretty clear..

Perhaps I'm trying something thats not supported, but still looking for a "value checking" condition example - since its missing in the "examples table

Eg. ${if:${viewpoint}="Capability":<>:<>}

jbsarrodie commented 1 year ago

Perhaps I'm trying something thats not supported, but still looking for a "value checking" condition example - since its missing in the "examples table

${if:_:_:_} only checks if a string is null or not, it doesn't check other expressions.