I noticed that the "Equal?" function requires a boolean as an output but say you want to continue by decrementing 10 down to -10 V.
Is there a way to achieve decrementing after incrementing within the same while loop?
Solved! Go to Solution.
Maintain your state and counts in shift registers and you can decide whether to add or subtract the 10.
The indexing array input is a bad idea with your while loop 🙂
AND unless you exactly now all values of the DBL it's also a bad idea to compare two DBLs with an EQUAL ... better use a >= or <= or for this case the IN RANGE