If Yes/No parameter = Yes, then text parameter = 'Remark X'

If Yes/No parameter = Yes, then text parameter = 'Remark X'

jnoordzij
Advocate Advocate
2,533 Views
2 Replies
Message 1 of 3

If Yes/No parameter = Yes, then text parameter = 'Remark X'

jnoordzij
Advocate
Advocate

Hi,

 

I have a yes/no boolean parameter called 'With Connector'.

Now I want to have a connection with another parameter as follows: If "With Connector' = Yes, then I want another parameter called 'Remark' ( a text parameter) to say 'With Connector'.

 

So I was thinking to use an 'if' formula in the following way:

if(With Connector = Yes, (then) 'With Connector', (if not) 'Without Connector')

 

...But its not working.

Is it possible to make a connection this way between a boolean yes/no and a text parameter?

 

Thanks

 

 

0 Likes
Accepted solutions (2)
2,534 Views
2 Replies
Replies (2)
Message 2 of 3

christopher_holden
Enthusiast
Enthusiast
Accepted solution

Yes, the syntax you require for your text parameter formula is:

 

if(With Connector, "With Connector", "Without Connector")

 

A Revit yes/no parameter behaves like a boolean variable = true/false.

Message 3 of 3

ToanDN
Consultant
Consultant
Accepted solution
if(With Connector, "With Connector", " ")