More > Media Center 17
Carnac - What does it do?
fitbrit:
--- Quote from: rick.ca on October 26, 2011, 01:17:10 am ---If(IsEmpty([Season]), , SPadNumber([Season], 2)/ )If(IsEmpty([Episode]), , EPadNumber([Episode], 2))
Note the handling of spaces. The expression language ignores spaces within functions, so they can be used to separate parameters for readability. So the space in ', ,' could be omitted—this means 'nothing' either way. Where a space is needed, it must be escaped with a '/'. Here, I've added a space after Season, and included it in the 'If' function so it's only added if there is a Season. On the other hand, there is no space separating the two 'If' functions—because we don't want '_E00' as a result when there is no Season.
--- End quote ---
Thanks VERY much. Off to bed now, but I'll take a closer look at this tomorrow. :)
fitbrit:
Thanks again, Rick. I finally tried a slightly modified version and it worked exactly as expected.
Navigation
[0] Message Index
[*] Previous page
Go to full version