Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Logical connectives in the database?
« previous next »
  • Print
Pages: [1]

Author Topic: Logical connectives in the database?  (Read 2398 times)

Offline some-xtc

  • Member
  • *
  • Posts: 6
Logical connectives in the database?
« on: January 04, 2011, 06:31:50 PM »
Following situation:

I have a long and messy "albumartist"-list, so I want to make it clearer.

But instead of usind the 'classic'-way like:
Code: [Select]
"A"   -> albumartist ? albumartist ^ "A" -> album  -> title = "f_browse"
"B"   -> albumartist ? albumartist ^ "B" -> album  -> title = "f_browse"
"C"   -> albumartist ? albumartist ^ "C" -> album  -> title = "f_browse"
"D"   -> albumartist ? albumartist ^ "D" -> album  -> title = "f_browse"
....

I want  to merge the first letters from the "albumartist"-tag too, to have a short, alphabetical list:
A, B, C, D
E, F, G, H
....

With my modarate programming knowledge I thought, it would be work, if I use the logical connective  "|" [or]:
Code: [Select]
"A, B, C, D"   -> albumartist ? albumartist ^ "A" | albumartist ^ "B" | albumartist ^ "C" | albumartist ^ "D" -> album  -> title = "f_browse"


But nope: It does not work.

Can someone help me?
Or is "&" the only one logical connectives allowed?

Thanks!
Logged

Offline sideral

  • Developer
  • Member
  • *
  • Posts: 48
Re: Logical connectives in the database?
« Reply #1 on: May 04, 2011, 08:26:19 AM »
The bad news: You're right, tagnavi conditionals currently do not support a logical-or operator.

The good news: I've just implemented it. Head over to http://www.rockbox.org/tracker/task/12095 if you want to help testing it.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Logical connectives in the database?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 2.637 seconds with 15 queries.