[metapost] Unable to figure out "if"

Shriramana Sharma samjnaa at gmail.com
Wed Aug 8 09:25:09 CEST 2012


On Wed, Aug 8, 2012 at 1:50 PM, Karel <akk64 at quick.cz> wrote:
> anta:=
>         if (i > -31) and (i < 31) : 70 ;
>         else : 60 ;

Thanks, this is more MP-like and "Pythonic"! "c = a if condition else b".

-- 
Shriramana Sharma


More information about the metapost mailing list