Author Topic: Nested translates (substring manipulation) or another work around?  (Read 1630 times)

Offline Indy

  • Member
  • **
  • Posts: 52
    • View Profile
I'm guessing the answer is NO and NO but I thought I would try.

In my contact sheet labels I'm utilizing the {gps} variable to indicate which photos have GPS coordinates.  But just seeing a 0 or 1 leaves a bit to be desired.

I found the translate function and have come up with this:

{gps:0:tr:1/[GPS]}

So now the label has [GPS] appended if the data exists but if not I see a 0 appended.  Ideally, I would like to translate the 0 into something else - either 'blank' or maybe dashes ---.

Is there a way to nest two translations - have a second translate act upon the results of the first translate?  I did try a lot of things with no success but I was just guessing on the possible syntax for such a thing.

If that is not possible, is there any other work around to achieve this?

Thanks,




Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Nested translates (substring manipulation) or another work around?
« Reply #1 on: June 19, 2022, 09:05:55 PM »
Indy,

No, not possible to nest them.  Why not just show the latitude and longitude?

-Kirk

Offline Indy

  • Member
  • **
  • Posts: 52
    • View Profile
Re: Nested translates (substring manipulation) or another work around?
« Reply #2 on: June 19, 2022, 10:10:53 PM »
Thanks for the reply.

No, not possible to nest them.  Why not just show the latitude and longitude?

Basically because I already have too much info displayed as it is...