INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Album-view Expression mis-behavior on Linux but not Windows  (Read 1990 times)

davidw55

  • Recent member
  • *
  • Posts: 49
Album-view Expression mis-behavior on Linux but not Windows
« on: March 27, 2019, 01:28:04 pm »

Hi there

Using MC 24.0.78 Linux Mint

Playing with an expression to augment my Album names with something, either Compression or Bitrate or something. 

I'm doing this (just an experiment)

     if (isempty([Album],[Album],[Album]-[Compression])

(you can guess why)

The expression seems to run but MC doesn't display the result of evaluated expression, but instead displays the expression itself.  I get album names that look roughly like

    if (0,"Greatest Hits","Greatest Hits ALAC")

P.S.  If I put this same expression into MC 24 on Windows, it does what I expect it to do. i.e. display the evaluated result of the expression.

This looks like a JMRC Linux defect but perhaps I'm breaking a rule that just fails differently on each platform.

Advice appreciated

Dave

Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661
Re: Album-view Expression mis-behavior on Linux but not Windows
« Reply #1 on: March 27, 2019, 02:09:43 pm »

You are missing a closing parenthesis in your expression and you need to kill the space after if.

Code: [Select]
if(isempty([Album]),[Album],[Album]-[Compression])
Also, you probably want to check if the Compression tag exists, instead of Album (that is superfluous and could be done with IfElse).

Code: [Select]
if(isempty([Compression]),[Album],[Album]-[Compression])
Logged

davidw55

  • Recent member
  • *
  • Posts: 49
Re: Album-view Expression mis-behavior on Linux but not Windows
« Reply #2 on: March 27, 2019, 02:57:32 pm »

The missing parenthesis was a typo when posting here, but the space after the if wasn't. Removing the space fixed the problem.

Thank you.
Logged
Pages: [1]   Go Up