File: flow_conditional.ppl

package info (click to toggle)
pyxplot 0.9.2-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,288 kB
  • sloc: ansic: 50,373; xml: 1,339; python: 570; sh: 318; makefile: 89
file content (4 lines) | stat: -rw-r--r-- 119 bytes parent folder | download | duplicates (6)
1
2
3
4
f(x) = (x>0)?x:0
print "%s %s %s %s %s"%(f(-2),f(-1),f(0),f(1),f(2))
x = 2
print "x is %s"%(x>0)?"positive":"negative"