Hey,

I am working on an Addon (I think Erin already knows lol) and I want to call an statamic error page. It's a simple if/else statement.

if ($value1 == $value2) {
      // does sth...
} else {
      **// trigger error page**
}

Is there any solution I didn't found yet?