[metapost] Unable to figure out "if"

Troy Henderson thenders at gmail.com
Wed Aug 8 08:53:50 CEST 2012


for i=-60 step 10 until 61:
   if (i > -31) and (i < 31):
      anta:= 70;
   else:
      anta:= 60;
   fi;
   draw (-anta,i)--(anta,i);
   draw (i,-anta)--(i,anta);
endfor;

--
Troy Henderson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20120808/59adb4c5/attachment.html>


More information about the metapost mailing list