If-Statement in a best way

Hello,

I want to check, is not the visited page “Projects”, only then an additional attribute should be in use.
Sorry, i’m not so familiar with PHP and perhaps in a special Kirby approach yet.

I’m looking for something like this:

<?php if ($page() <> page('projects')) : ?>
<p>Example</p>
<?php endif ?>

Thank you

<?php if (! $page->is(page('projects'))): ?>
<?php endif ?>
1 Like