View Single Post
Old 09-08-2025, 08:58 AM   #11
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,248
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by chaley View Post
Use a for loop, as in
Code:
program: 
	res = 'Authors:';
	for aut in "authors":
		res = res & '<br>' & aut
	rof;
	res
If a for loop is given the lookup name of a column it uses the separator for that column. If you have the list in a variable then the following works:
Code:
program: 
	res = 'Authors:';
	for aut in $authors separator '&':
		res = res & '<br>' & aut
	rof;
	res
Now I see my error. I was doing this:
Code:
for aut in $authors:
I didn't know about the 'separator' bit.

Thanks for your help!
thiago.eec is offline   Reply With Quote