Download CalculiX USER'S MANUAL - CalculiX GraphiX, Version 2.8 -

Transcript
SETA out l L05L
C.6
If and while demo
Figure 18: Result of If and while demo
The if and while commands can be nested. A demo which produces some
points on the window follows:
text if&value&while demo
# def the leading letter of point names
valu vp P
# define the initial x value
valu vx 0.
# define parameters
valu v2 4
valu v3 1
# start loop:
while vx < v2
valu vy 0.
136