Is there any way to check if the value of a field is empty or to be more precise value in general link field is empty in Scriban?
Whenever I type the if keyword, it does not register it:
Here is the code:
{{if (sc_link_text i_child_items 'Build')}}
{{ sc_beginfield i_child_items 'Build' [['class', 'dropdown-menu-productlink'], ['text', ' ']]}}
{{ sc_link_text i_child_items 'Build' }}
{{ sc_endfield }}
{{else}}
<p>test</p>
{{end}}
This code will not work because I still get the empty inner text in a tag