a = (b == 3).if(1, 2)
or
a = if(b == 3, 1, 2)
hjh
On Saturday, May 1, 2004, at 13:49 US/Eastern, Terry Lee wrote:
Is there an equivalent to the following in SC lang?
a = (b == 3) ? 1 : 2;
Or do I need to do it the long way. I'm just a big fan of one
liners.
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users
____________________________________
H. James Harkins /// dewdrop_world
http://www.duke.edu/~jharkins
"If attacked by a lion, thrust your arm down his throat.
This takes some practice." -- Cyril Connolly
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users