examples for loops.

The syntax is listed in the ngspice manual,
chapter 17.6 Control Structures. Practical examples
using a simple voltage divider circuit are given here.
This commit is contained in:
Holger Vogt
2022-04-26 10:32:53 +02:00
parent 9ac4dab81a
commit 6b03aaa15f
9 changed files with 270 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
example while loop
.control
let loopindex = 0
while loopindex < 5
echo index is $&loopindex
let loopindex = loopindex + 1
end
.endc
.end