Conditional Text

Putting together some game cards using a CSV file. No problems with setting up variable text as I have done that successfully with other projects.

However, this project requires that if the contents of a given CSV cell contain a value then I need to burn a label value followed by the cell value. Otherwise I to not burn anything. Ideally I’d also not have to leave an empty space on the card much as one would do in a mail merge situation.

Thanks in advance.

I don’t believe the current implementation of Variable Text in LightBurn allows for conditional logic. Instead of trying to apply the conditional logic in LightBurn, can you output only the relevant text in whatever you’re using to generate the CSV?

Good thinking. Doesn’t solve the empty space problem, though.

Did occur to me to simply do a mail merge in a publishing app then export the output in an image file. But that comes with its own nightmares.

I’m not following this situation. Can you provide an example?

CSV file shown in white box. Black lettering indicates a non-variable text object, red and green are variable text objects from CSV.

Upper left shows how


handles the data from the first line of the CSV while the upper right shows how it handles the second line of the CSV.

In the case of the second CSV Line, if there is nothing in the “Who” column then I don’t want the fixed text “Loves” object printed and I want all following text objects to move up, fixed or otherwise.

Hope this helps clarify

Consider putting the “action”, as in “Loves” into its own field. Take a look at this example.

After baking:

Contents of csv file:

name, action, who
Cyndiloo, Loves, Santa
Candyman,,
Doug,,
Fiona, Loves, Shrek

Thanks for the reply.

While that will clearly leave empty space, In my trial s It doesn’t cause the following lines to move upward if the line preceding it is functionally blank unless that is a function of baking.

What version of LightBurn are you running?

Try going to Shape Properties window with the text selected and enable “Ignore Empty Vars” to see if that changes the behavior.

I kow what you want, dynamic skipping a row if a specific field is empty.

That begs the question, “Why create rows with incomplete data?”