mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-05 11:15:09 +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.
12 lines
116 B
Plaintext
12 lines
116 B
Plaintext
example repeat loop
|
|
.control
|
|
|
|
set loops = 7
|
|
repeat $loops
|
|
echo How many loops? $loops
|
|
end
|
|
|
|
.endc
|
|
|
|
.end
|