Skip to main content
Solved

How do I output <null> in attribute table after calculation

  • May 13, 2022
  • 2 replies
  • 15 views

Forum|alt.badge.img

Hello Sir / Madam,

 

So I would like to subtract both "Top Height" and "Rooflevel" attributes.

 

I use attribute manager to calculate the value

@round(@abs(@Value(TopHeight)-@Value(ROOFLEVEL)),1)

 

The result is shown as below.

However, I want my result to be <null> if either TopHeight or Rooflevel is <null>. May I ask how to do it?

 

Thank you.

 

Zachary

Best answer by ctredinnick

You can use a Conditional Value. It's in the dropdown when you set an attribute value in the AttributeManager, underneath 'Open Arithmetic Editor'

image 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ctredinnick
Supporter
Forum|alt.badge.img+19
  • Supporter
  • 225 replies
  • Best Answer
  • May 13, 2022

You can use a Conditional Value. It's in the dropdown when you set an attribute value in the AttributeManager, underneath 'Open Arithmetic Editor'

image 

 


Forum|alt.badge.img

You can use a Conditional Value. It's in the dropdown when you set an attribute value in the AttributeManager, underneath 'Open Arithmetic Editor'

image 

 

Got it! thank you so much for your prompt response! :)