Alternating field values

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

Postby 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!

Coranto is free software. I am available for custom work or troubleshooting. - transkripsjon, webdesign, nettsider, tekstbyrå - satire, politikk, kultur, sport, nettavis
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway


Return to Customization

Who is online

Users browsing this forum: No registered users and 1 guest