Formula integer

Formula integer

kboschJGDNZ
Enthusiast Enthusiast
4,503 Views
4 Replies
Message 1 of 5

Formula integer

kboschJGDNZ
Enthusiast
Enthusiast

Hello

 

I want the following formula to work with integers:

IF(condition=true,show parameter, show nothing)

This however only works when I fill a number at the last part. (show nothing = 0 or some other number)

"Show nothing" with a text parameter is just "", but with integers this doesn't work

 

Does anyone know a way to make this work?

 

 

0 Likes
Accepted solutions (1)
4,504 Views
4 Replies
Replies (4)
Message 2 of 5

L.Maas
Mentor
Mentor
Accepted solution

While for a string "" is still a string. For integers you will need an integer value. So unfortunately you can not make this work. There have been ideas to be able to reset a parameter back to null (not assigned), but this is not implemented (yet?).

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 3 of 5

kboschJGDNZ
Enthusiast
Enthusiast

Ok that's a pitty then. Hopefully this will be implemented some day.

0 Likes
Message 4 of 5

ToanDN
Consultant
Consultant

You would wish there is something like what you can do in Excel, would you not?  Alas...

 

Capture.PNG

Message 5 of 5

kboschJGDNZ
Enthusiast
Enthusiast

Now I think about it...you can suppress trailings...I wonder if you can supress a single zero. I'll check this out when I'm at work.Smiley Very Happy

0 Likes