AnsweredAssumed Answered

End if, but the loop doesn't stop

Question asked by marcopel on Dec 16, 2015
Latest reply on Dec 16, 2015 by marcopel

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:

scrip.tiff

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.

 

m.

Outcomes