How to use conditionals with delegates?

I have one script with the following delegate below, which is fired when the URL of the website displayed in my application has been changed either by user input or due to a page redirect:

public delegate void URLChangedDelegate (UWKWebView view, string url);

In a second script, what I would like to do is set a conditional so that I can check “if” the changed URL is a specific value and if so then load a new scene. I’m not quite sure how to do this as I have little experience with delegates. I have watched the official tutorials but they do not seem to cover this specific case. I would appreciate some advice please.

That looks like a built-in for the uWEBkit AddOn? If so, might help to put that in the title, and I see they have a message board.

Delegates are just functions. So, you can write:

void checkForCats(UWKWebView view, string url) {
  if(url=="catsthatlooklikehitler.com") // real page!! super cute!!
    Debug.Log("this guy's in for a real treat.);
}

Then you hook it up as a callback however it says to. Like maybe you have to write URLchangeAction=checkForCats; (but I just made up URLchangeAction.) Then it’s kind of like OnCollisionEnter. Their system just “knows” when to run it.