DesignScript Syntax

Hello,

I’m learning basic panelization techniques, and i’m using CodeBlocks. I need to create Ulines and Vlines on surface. I know it can be easily solved with conventional nodes, but i need to do it in this way. My node partialy works, but creates overlapping Ulines… I know there is a syntax error, but i don´t know how to solve it.

Any help is appreciated.
LinesOnSurface

 

 

 

 

Regards.

File: UV-DS.dyn

The image below indicates the portions that were altered

20151009-1

 

Vikram,

It works. Thanks for your help.

Regards