Section One BBS

Welcome, Guest.


Subject: Re: Need a bit of help... Date: Sun Dec 13 2015 09:38 am
From: Fireball To: echicken

 >   Re: Need a bit of help...
 >   By: Fireball to All on Sat Dec 12 2015 17:59:27

 >  Fi> I've tried variations on RepeatObj, but I can't seem to find how this
 >  Fi> thing is indexed. Any help would be great!

 > The RepeatObj variable is explained at the top of web/lib/template.ssjs.  I
 > don't think that this will entirely solve your problem, but you'll want to
 > start by wrapping your code in a <<REPEAT groups>> ... <<END REPEAT groups>>
 > block.

 > However at a glance I'm not sure what the purpose of this is:

 >   if(msg_area.grp_list[msg_area.grp_list.length - 1]) { ... }

 > It looks like you're testing for the existence of something that is almost
 > guaranteed to exist unless msg_area.grp_list.length is zero.  You'll
 > probably want to do something like:

 >   if(RepeatObj.index === msg_area.grp_list.length - 1) { ... }

 > Which will tell you if you're at the last entry in the list.


Thanks echicken! It worked! I knew I had to make a comparison, I just wasn't
sure 
what to compare. I had all kinds of crazy stuff going on after I sent out the
email. I learned something today. :D Thanks again!

Regards,
-=Fireball=-

---
 ■ Synchronet ■ Fireball Express!!! BBS - http://fireballex.com telnet://firebal
lex.com

Previous Message       Next Message
In Reply To: Need a bit of help... (echicken)