mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-31 18:05:14 +02:00
The syntax is listed in the ngspice manual, chapter 17.6 Control Structures. Practical examples using a simple voltage divider circuit are given here.
13 lines
156 B
Plaintext
13 lines
156 B
Plaintext
example while loop
|
|
.control
|
|
|
|
let loopindex = 0
|
|
while loopindex < 5
|
|
echo index is $&loopindex
|
|
let loopindex = loopindex + 1
|
|
end
|
|
|
|
.endc
|
|
|
|
.end
|