We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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)

AC27: Win10 Pro, 12th Gen Intel(R) Core(TM) i9-12900K 128gb ram, RTX-A6000