cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Document & Visualize forum

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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!