Categories > TinyButStrong general >

Tip about blocks

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Aldoir
Date: 2004-09-03
Time: 03:45

Tip about blocks

My array data is something like

$array[0] = Array('name' => 'John');
$array[1] = Array('name' => 'Mary');
$array[2] = Array('name' => 'Bob');

I would like to display they as:

John, Mary, Bob

but I cant figure out an easiest way to do

I tried
<acronym><a href="#">[to.name;block=acronym]</a>, </acronym>

but I got an extra , at the end of string... any ideas ?

thanks

Aldoir
By: Skrol29
Date: 2004-09-03
Time: 10:16

Re: Tip about blocks

I'm afraid you have to use something like:

[to.#;if [val]==1;then ',';else '']
By: Aldoir
Date: 2004-09-03
Time: 14:39

Re: Tip about blocks

Thanks Skrol29, I'll try it... may be a suggestion for future versions

Aldoir
By: Skrol29
Date: 2004-09-06
Time: 00:09

Re: Tip about blocks

Yes, it could be interesting.