Twig help

Hi Everyone!

I really stuck in an if parameter I’ll basically want to code on twig {% if in page.header ( in front matter) has got any title: > print on screen the title and if not > do nothing and pass the code…

there are lots of things like that in coding on my website so I really learn to understand the parameters working Could anyone help me to figure it out please… thanks and keep up good work.

I’m no twig expert but I think there are 2 ways you could do this depending on your setup.
Using this method would only display if the field {{ page.header.title }} exists in your frontmatter.

Or to check if the field is empty or not something like this

thanxx