How do I catch an error from a function and continue running

Options
[Screenshot 2022-04-28 at 4.14.50 PM.png]I'm calling a function from a task. How do I catch errors with an if-else and let the task continue to run?

Thanks in advance.

Comments

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options
    AFAIK Xano doesn't have try-catch today - an error will stop the show.  

    What you can do is use filters to check whether a certain criteria is met. For example, you can use an "if" to check to see whether a given field is a valid email before attempting the data transaction, and flow around it. 
  • HC
    HC Member
    Options
    Thanks. I did exactly that.