Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Will someone check my script? if, else, else, etc. (Read 1208 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Will someone check my script? if, else, else, etc.

I'm attempting to make my track column useful, indicating when something is queued, playing, paused etc. Basically this --

Code: [Select]
$if(%queue_index%, +%queue_index%)
else:
$if(%isplaying%, ►)
else:
$if(%ispaused%, ||)
else:
%tracknumber%

I'm having no luck on my own but I'm sure it's simple. How does this translate into foospeak?

Will someone check my script? if, else, else, etc.

Reply #1
This will do what you want.

Code: [Select]
$if(%ispaused%,||,$if(%isplaying%, ►,$if(%queue_index%,+%queue_index%,[%discnumber%.]%tracknumber%)))


Had to move the pause and playing checks.

Will someone check my script? if, else, else, etc.

Reply #2
This will do what you want.

Code: [Select]
$if(%ispaused%,||,$if(%isplaying%, ?,$if(%queue_index%,+%queue_index%,[%discnumber%.]%tracknumber%)))


Had to move the pause and playing checks.

Perfect! Thanks so much.