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!

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
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Previous

Return to Customization

Who is online

Users browsing this forum: No registered users and 2 guests

cron