I am trying to control the evenly distance of a Linear 1S generator using expressions in an Arithmetic node. It seems to work alright until I introduce the XSplineLength. When using XSplineLength in the if conditional, Railclone will not produce any geometry. When I replace the XSplineLenght with a float or integer it works fine, even though the values are the same.

the expression I wrote is as follows:

the expression I wrote is as follows:

Code: [Select]

`return `

if (Input1 >= 7, XSplineLength/2.0, XSplineLength/4.0);