mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +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
161 B
Plaintext
13 lines
161 B
Plaintext
example dowhile loop
|
|
.control
|
|
|
|
let loopindex = 0
|
|
dowhile loopindex <> 5
|
|
echo index is $&loopindex
|
|
let loopindex = loopindex + 1
|
|
end
|
|
|
|
.endc
|
|
|
|
.end
|