If-Then-Else

  • Good morning,

    I have started doing my second Pagekit extension, which is basically a "larger" version of the Fields plugin. One question I do have: If I use an extension like the Fields plugin, is it somehow possible to use the value returned as the determining factor for an if-the-else clause? For example if I use (fields){"id":"year"} and the value returned is 2019, I would like to output "HAPPY NEW YEAR" but not if it is still 2018. Can I somehow do that?

    Thanks,

    Mercator