by SrNupsen » Mon Sep 08, 2003 3:07 pm
Parahead wrote:<PerlCode>$which = $lfcnt{$ProfileName}++ % 2 ? 'right' : 'left';</PerlCode>
<Field: which>
This one works great, so it could be included in the Newbie sticky as a general example of how to alternate between two values of any kind. Thanks, everybody!
MrNupsen
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for
custom work or troubleshooting.
http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------