IF Visibility State, THEN "Value from an attribute"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Morning!
I´ve been struggling with this for a couple of days now.
I have a block which identifies several different emergency signs. Each different sign is an individual visibility state. This is mainly because the top part of the block shows its ID number, and the bottom one shows its dimensions, but because some signs are circular, others square, others rectangular and others triangular, the dimension shown will be either a diameter, a length or two dimensios.
Therefore I created a table which includes all the possible dimensions and format for a sign based on the distance from which it will be seen, and through visibility states I show only the "size" format I need for a specific sign (Diameter, length...)
I ran into some trouble with data extraction. I want to combine Diameter, length by width, Length of triangle side, etc into a single column.
To achieve this in an automated manner, I tried several things with no success. Now to my latest idea:
If I can create an Attribute that uses an IF/Then Variable I could combine all the dimensions into a single column as follows:
If visibility=x then display the content of attribute "diameter". However...
If visibility=y then display the content of the attribute (LxH)
The fields have other names because it's in portuguese, but that´s the general idea. I got a feeling I could do this through a Diesel expression but have no idea how to create one myself.
I thought adapting this (from another post) might be a good starting point, but I need help:
$(if,$(eq,$(getenv,username),JOSM),"John Smith",$(if,$(eq,$(getenv,username),MAST),"Mary Stewart",Next))
I will upload the block to illustrate my point. There are also some jpg that will be missing but are irrelevant.
Thanks!!!