Sam Dainton
01/09/2025, 1:20 PMCeligo AI
01/09/2025, 1:20 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems you are trying to write a conditional statement in FreeMarker for an Advanced PDF in NetSuite. Here's how you can do it:
freemarker
<#if subsidiary.name??>
${subsidiary.name}
<#else>
Lapwing UK. Limited
</#if>
This code checks if subsidiary.name exists. If it does, it will print the subsidiary.name. If it doesn't exist (i.e., it's null), it will print 'Lapwing UK. Limited'.
Please note that in FreeMarker, you use ? to check if a variable exists and ! to provide a default value when a variable is null. Also, the = sign is used for assignment, not comparison. For comparison, you should use ==.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
01/09/2025, 1:20 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816533744
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.808199883
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.796565831
Celigo AI
01/09/2025, 1:20 PM