xref: /freebsd/contrib/one-true-awk/testdir/t.cond (revision 35c87c070a2d04f06c56578b0a4b2e9c13f62be5)
1{ print (substr($2,1,1) > substr($2,2,1)) ? $1 : $2 }
2{ x = substr($1, 1, 1); y = substr($1, 2, 1); z = substr($1, 3, 1)
3  print (x > y ? (x > z ? x : z) : y > z ? y : z) }
4