BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Documentation
About Archicad's documenting tools, views, model filtering, layouts, publishing, etc.

Need help with If-statements and applying units to the output in expressions.

SidselVincents
Contributor

Hi - I'm having trouble with creating multiple if-statements in an expression. I need the expression to give a different output for three options in another property. I tried using the 'IFS' logical function, however it tells me that there is a syntax error from the beginning of the statement. What could be the cause of this? (First screenshot)

 

My second problem is applying  a unit to the output from an Expression. How do I solve this? (second screenshot)

SidselVincents_1-1646659904425.png

 

SidselVincents_0-1646659725240.png

 

Thanks in advance!

 

1 REPLY 1
MDunkin
Contributor

Remove the square brackets [ ] from your expression.  I don't like how the example shows this, but causes expression to fail.

 

IFS(Glazing Type = "3", 10, Glazing Type = "2", 100, Glazing Type = "-", 0)

AC25-26: Win10 Pro, 12th Gen Intel(R) Core(TM) i9-12900K 128gb ram, RTX-3080Ti
Learn and get certified!