Display post if a specific tag is present

According to the docs the input parameters can be:

has_tag( string|int|array $tag = '', int|object $post = null )

so you could try e.g.

if( has_tag( 'test' ) ) { ... }

to check if the current post has the test tag.

error code: 523