If-Statement in a best way


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')) : ?>
<?php endif ?>

Thank you

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