Hi,
it would be „safer“ to check both lengths instead of the area - for example by the following expression, where exported X Size & Y Size attributes of the Segment are being used to evaluates if it fits or not:
return if(XSplineLength>Input1 && YSplineLength>Input2,2,1);
Best regards,