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
| |-+  Theming and Appearance Customization
| | |-+  Compare with String
« previous next »
  • Print
Pages: [1]

Author Topic: Compare with String  (Read 1085 times)

Offline thm655321

  • Member
  • *
  • Posts: 4
Compare with String
« on: November 27, 2010, 07:26:44 PM »
Did a search and did not find my answer.

Is it possible to use an "if" conditional to compare an iD3 value to an actual string?  For example:

%?if(%ia,  =, Radiohead)<x|y>

i.e., if the artist = Radiohead then ...

Is that possible?  When I try this I only succeed in crashing the simulator (Clip+), which leads me to think you cannot, but I thought I'd ask anyways.

Thanks in advance.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Compare with String
« Reply #1 on: November 27, 2010, 08:38:18 PM »
that should be working.
Does the track that crashes it usually show the artist tag?
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline thm655321

  • Member
  • *
  • Posts: 4
Re: Compare with String
« Reply #2 on: November 27, 2010, 09:10:54 PM »
Thanks for the reply.

I was %ia as the example but really I was using %iG.

In my collection those flac files that are actually conversions from vinyl I put "VINYL" in the grouping tag.  The actual line that crashes the simulator is:

%?if(%iG, =, VINYL)<Vinyl|Not Vinyl>

That crashes the simulator.

As a test I used %ia and it also crashed the simulator.

I know that comparing one iD3 tag to another works, e.g., comparing %ia to %Ia.  Maybe you just can't compare to actual text?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Compare with String
« Reply #3 on: November 27, 2010, 10:42:46 PM »
I just commited a fix (hopefully it works)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline thm655321

  • Member
  • *
  • Posts: 4
Re: Compare with String
« Reply #4 on: November 27, 2010, 10:44:36 PM »
Great thanks.

Noob question, how do I take advantage of the fix?  Do I download a daily build?

Thanks again.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Compare with String
« Reply #5 on: November 27, 2010, 10:46:40 PM »
Quote from: thm655321 on November 27, 2010, 10:44:36 PM
Great thanks.

Noob question, how do I take advantage of the fix?  Do I download a daily build?

Yes, once its committed you just need to down a build on or after the commit revision. 
Logged

Offline thm655321

  • Member
  • *
  • Posts: 4
Re: Compare with String
« Reply #6 on: November 27, 2010, 10:49:46 PM »
Beautiful, thanks again.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Compare with String
 

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

Page created in 0.076 seconds with 15 queries.