Using IF statement in Sub Assembly composer

Using IF statement in Sub Assembly composer

brett.townsend
Participant Participant
401 Views
1 Reply
Message 1 of 2

Using IF statement in Sub Assembly composer

brett.townsend
Participant
Participant

I am trying to use an IF statement to produce a positive or negative output parameter value based on the slope of a link.

 

If L3.slope < 0 Then
L3.YLength = -L3.YLength
Else
L3.YLength = L3.YLength
End If

 

Produces a compiler error, can anyone assist plz.

0 Likes
Accepted solutions (1)
402 Views
1 Reply
Reply (1)
Message 2 of 2

brett.townsend
Participant
Participant
Accepted solution

if (L3.Slope < 0 = true, -L3.Ylength,L3.Ylength)

 

to answer my own question 🙂