INTERACT FORUM

Please login or register.

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

Author Topic: Expression editor  (Read 1184 times)

Vincent Kars

  • Citizen of the Universe
  • *****
  • Posts: 1154
Expression editor
« on: November 18, 2014, 03:07:18 pm »

As the topic is locked:

Quote from: Vincent Kars on November 08, 2014, 08:44:14 am

I like the window

This is hard to read
ListItem(ListItem([Artist],0),0,/,)If(ListItem(ListItem([Artist],1),0,/,),//ListItem(ListItem([Artist],1),0,/,),)If(ListItem(ListItem([Artist],2),0,/,),//ListItem(ListItem([Artist],2),0,/,),)

This is so much better
ListItem(ListItem([Artist],0),0,/,)
If(ListItem(ListItem([Artist],1),0,/,),//ListItem(ListItem([Artist],1),0,/,),)
If(ListItem(ListItem([Artist],2),0,/,),//ListItem(ListItem([Artist],2),0,/,),)

Unfortunately the single line differs from the multiline in formatting

Argerich/Kremer/Maisky (Single line)
Argerich /Kremer /Maisky (Multipline)

It look like the CR is included in the output in case of multi line expressions
Please remove this from the output

Consider
Quote
Matt
If we ignored the CR, there wouldn't be any way to output a CR.  That seems bad.

Matt,
What you are advocating here is that formatting an expression also yields a different output.
Please reconsider

Vincent
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Expression editor
« Reply #1 on: November 18, 2014, 03:27:57 pm »

You can split to a new line after a comma.
 
However, I'm wondering what your expression there does. It seems like there is probably a more efficient way to write that.
Logged

Vincent Kars

  • Citizen of the Universe
  • *****
  • Posts: 1154
Re: Expression editor
« Reply #2 on: November 19, 2014, 03:34:59 am »

In the Artist field I have multiple artist all written as Last Name, First Name
The expression concatenates the last names.

Matt does have a point, in a multi line field like thumbnail text it is very convenient if the formatting of the expression (CR) is honored
If we take this to the limit, in a single line field only the first item should be displayed :)

What I propose is that in case of a single line field the CR is ignored completely.
Logged
Pages: [1]   Go Up