mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-07 04:53:15 +02:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user