Is it possible to use {{ .Title }} in a shortcode?

if the {{ index .Params 1 }} would be empty using {{ .Title }} to fill it up,

Try

{{ .Page.Title }}

Thanks a lot, it works!

I have another question, i tried to check if params1 was empty and then print something if it is :

{{ if {{ index .Params 1 }} “” }} test {{end}}

but it’s not working,

i found some info in the documentation but i don’t know how to format it:
{{ if eq .Section “blog” }}current{{ end }}

Is it possible to help? thanks!

{{ if eq (index .Params 1) "" }} test {{ end }}