Improper use of boolean expressions

Improper use of boolean expressions

msosaMVWKG
Explorer Explorer
1,898 Views
10 Replies
Message 1 of 11

Improper use of boolean expressions

msosaMVWKG
Explorer
Explorer

Hello!

I get the Improper use of boolean expressions message, i dont know how to make it work.

IF (Number = 26, Area / 2, Area)

where Number is the room number. I want specific rooms to be divided by 2 for their final area.

Thanks!

Capture schedule.PNG

0 Likes
Accepted solutions (3)
1,899 Views
10 Replies
Replies (10)
Message 2 of 11

rxi.gg
Advisor
Advisor

What type of parameter 'Number' is?

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

0 Likes
Message 3 of 11

msosaMVWKG
Explorer
Explorer

Its the room number (in the room tag), does that make it a text or integer?

0 Likes
Message 4 of 11

rxi.gg
Advisor
Advisor

That type of parameter doesn't work in calculated value.

you have to create a Number-type parameter and it works

 

1.png2.png

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

0 Likes
Message 5 of 11

msosaMVWKG
Explorer
Explorer

The formula works! however, i dont get that other window with the categories where you choose "Habitaciones". I get an empty column on my schedule

0 Likes
Message 6 of 11

msosaMVWKG
Explorer
Explorer

Nevermind its working now! I had to edit the idd in the room tag that i wanted. Thank you so much!!

0 Likes
Message 7 of 11

rxi.gg
Advisor
Advisor

You have to edit the parameter in every room 🙂

 

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

0 Likes
Message 8 of 11

rxi.gg
Advisor
Advisor
Accepted solution

great! 

Please accept it as a solution if it has solved your doubt!

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

0 Likes
Message 9 of 11

msosaMVWKG
Explorer
Explorer

Quick question, how do i write the statement if there are more numbers i want to choose? for example, I want that the formula divides the area by 2 for specific items on the list with idd 26, 28, 30 and 32. Capture schedule 2.PNG

0 Likes
Message 10 of 11

ToanDN
Consultant
Consultant
Accepted solution

@msosaMVWKG wrote:

Quick question, how do i write the statement if there are more numbers i want to choose? for example, I want that the formula divides the area by 2 for specific items on the list with idd 26, 28, 30 and 32. Capture schedule 2.PNG


If you do it that way your formula will get very long and prone to errors.

 

Just add a yes/no parameter to the schedule, name it Half Area, tick it for any rows need to be divided by 2, untick for the rest, then use the formula:

if (Half Area, Area/2, Area)

0 Likes
Message 11 of 11

rxi.gg
Advisor
Advisor
Accepted solution

Do it with a yes/no parameter

1.png2.png

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

0 Likes