mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-03 18:59:44 +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
|