Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
I'm trying to figure out a way to optionally have a comma.
If I have a Title, or a Caption, then I want a comma before the Copyright info, but if both Title & Caption are empty then no comma.
Any insight would be appreciated.
Thanks,
:-)
Offline
I'm trying to figure out a way to optionally have a comma.
If I have a Title, or a Caption, then I want a comma before the Copyright info, but if both Title & Caption are empty then no comma.
Any insight would be appreciated.Thanks,
:-)
Look at the LUA programming section of the token docs for conditionals
http://backlight.theturninggate.net/doc … lua__token
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I did something similar to what you want to do using this code in the caption tokens field:
{Title} {LUA=if Title ~= "" and Caption ~= "" then return " - " end} {Caption}
It puts a "-" between both the title and caption if the caption exist.
Offline
Thank you, that looks like the solution
:-)
Offline
Pages: 1