How to show " mark in IF formula text string output

How to show " mark in IF formula text string output

johnw
Collaborator Collaborator
2,409 Views
3 Replies
Message 1 of 4

How to show " mark in IF formula text string output

johnw
Collaborator
Collaborator

I am trying to have an "if" statement put out a text string that needs to have an Inch Mark (") shown. How would I do this in the following statement:

 

if([14" Wide Side Lt], "14" TEMP. SIDE LT.", "12" TEMP. SIDE LT.")

 

The "inch marks are shown at the 14 and 12 in the example above, but this will not work in Revit Parameters Formula section.

 

Any help would be appreciated.

 

Thanks,


John

0 Likes
Accepted solutions (1)
2,410 Views
3 Replies
Replies (3)
Message 2 of 4

Alfredo_Medina
Mentor
Mentor
Accepted solution

Assuming that 14" TEMP. SIDE LT is a yes/no parameter, the formula for the text parameter should be set to:

 

if([14" Wide Side Lt], "14\" TEMP. SIDE LT.", "12\" TEMP. SIDE LT.")

 

Basically, add a back slash before the quote mark in the formula to make the output display the quote mark.


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
Message 3 of 4

ToanDN
Consultant
Consultant

@Alfredo_Medina wrote:

 

 

Basically, add a back slash before the quote mark in the formula to make the output display the quote mark.


I had no idea about this rule.  Thanks!

Do you by any chance know how to enter m2 (square meter) in a formula?  

Message 4 of 4

Alfredo_Medina
Mentor
Mentor

m Alt 0178 

 

m²  


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin