Exacly i found this Y Offset limitation
I tested as well
return
if(XSplinematID==3,input1, if(XSplinematID==4,input2,input1));
Your expression and nested second conditional works fine in X and Z Axis.
If General Y Offset wont work ill transform segments