Sub Assembly Composer - If Statement - Expression Editor

Sub Assembly Composer - If Statement - Expression Editor

Anonymous
Not applicable
1,887 Views
2 Replies
Message 1 of 3

Sub Assembly Composer - If Statement - Expression Editor

Anonymous
Not applicable

Morning/Afternoon and Evening

I'm working on a bespoke sub assembly in sub assembly composer. However the slope angle is an int (degrees) which which retains the slope when toggled from left to right. I've been trying to add an expression in the Expression Editor to add 180 to the value if Side = Left but am getting nowhere.

 

So my expression is:

{If (Side.Value="Right")
    WallAngle.Value
Else
   WallAngle.Value+180
}

Unfortunately this fails, would anyone be able to assist on how I would go about writing an If Statement in Expression Editor?

0 Likes
1,888 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

you can convert your slope to double and then try your if statement, something like this

--> ctype(WallAngle.value,double),

this function will convert your slope to double.....

0 Likes
Message 3 of 3

M_Obradovic
Collaborator
Collaborator

Can you share pkt file?

0 Likes