4 Replies Latest reply on Dec 16, 2015 7:27 AM by marcopel

    End if, but the loop doesn't stop


      Dear community.

      I have a simple script that takes a numeric value from table A and based on that create several new record in a related table B.

      problem is that the loop simply goes forever and ever .


      I'm confused , if someone could help me it would be great!

      here is the script:


      in the end I reset the variable is reset to zero.

      the Idea is that a gardener decides how many seed to sow ( the $number ) and this creates new entries in a related plant database.


      thanks a lot for the help.