Re: Referencing an attribute as the final ifelse/ifelse conditional value

2022-05-06 Thread Mark Payne
James,

If I’m reading it right, it looks like you’re using a comma between the )}  and 
the ${currentAttribute} ?

Thanks
-Mark



On May 6, 2022, at 12:47 PM, James McMahon 
mailto:jsmcmah...@gmail.com>> wrote:

UpdateAttribute is flagging the final } in my expression. How can I make the 
final value an attribute reference?

I need to set attribute currentAttribute to itself if neither ifElse case 
matches

${this.set:equals('ABCD'):and(${filename:find('.*daily.*)}):ifElse(
${this.set:equals('ABCD'):ifElse(
  'val_if_second', 'val_if_first'
 )}
${currentAttribute}
)}

I have used this syntax before, but with a value in that last position. How can 
I do this?

I would be happy to just leave it out, but I am given to understand it the 
ifElse / ifElse pair required it.



Referencing an attribute as the final ifelse/ifelse conditional value

2022-05-06 Thread James McMahon
UpdateAttribute is flagging the final } in my expression. How can I make
the final value an attribute reference?

I need to set attribute currentAttribute to itself if neither ifElse case
matches

${this.set:equals('ABCD'):and(${filename:find('.*daily.*)}):ifElse(
${this.set:equals('ABCD'):ifElse(
  'val_if_second', 'val_if_first'
 )}
${currentAttribute}
)}

I have used this syntax before, but with a value in that last position. How
can I do this?

I would be happy to just leave it out, but I am given to understand it the
ifElse / ifElse pair required it.