List in message box

Using Vision, I have a list and was hoping to use this in a message box, each item in the list being a new line in the message box. For some reason, I’m not able to figure this one out. Can anyone help?

This works, but I don’t consider it very good.

StringBuilder = ""
for item in List:
	StringBuilder = "<html>" + item + "<br>" + StringBuilder

Would like to hear other options if anyone is willing. Thanks.

system.gui.messageBox("<html>" + "<br>".join(listOfItems)

Not very good because of the code, or because of how it ends up looking?

The code, I thought it was a little wacky. Maybe it’s just me.

Thanks, I thought I tried Join, I must have fat fingered something.

1 Like