• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN Unclear documentation on 'Varibales' page

Status
Not open for further replies.

Pringus

Member
This page: https://wiki.sinusbot.com/en:guides:features:scripts:variables

I'm trying to understand how to use multiple-entry variables such as "tracks" and "strings."
The user enters their information, and the items are separated into different blocks.

Can I access these items as an array? Are they objects?

Pseudo-code example:
Code:
vars: [
  name:"tracklist",
  type:"tracks"
]

media.play(config.tracklist[0]);

Would this work? The documentation doesn't have any examples of this.

Thanks
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Would this work? The documentation doesn't have any examples of this.
yes, this is the only thing that would make sense (except that the vars thing is wrong => missing curly-brackets)
 
Status
Not open for further replies.
Top