Ruby conditional LOOP module: what's wrong with code?
Posted: Thu Jun 28, 2018 4:56 pm
Dear Colleagues,
please help to figure out problem with Ruby code. I created Ruby-based module, which implements conditional looping, depending on if the 2nd input is true or false. The loop should stop, either if this input becomes 'true', or iterations' number exceeds the preset limit.
The code is meant so as it first of all sends the start trigger right before the loop body starts (str. 7) to the 1st output, but in fact this happens only AFTER the loop finishes, inspite of that the appropriate string is placed before the loop...
And I cannot figure out what's wrong...
Please help. The schematic is attached below.
please help to figure out problem with Ruby code. I created Ruby-based module, which implements conditional looping, depending on if the 2nd input is true or false. The loop should stop, either if this input becomes 'true', or iterations' number exceeds the preset limit.
The code is meant so as it first of all sends the start trigger right before the loop body starts (str. 7) to the 1st output, but in fact this happens only AFTER the loop finishes, inspite of that the appropriate string is placed before the loop...
And I cannot figure out what's wrong...
Please help. The schematic is attached below.