IF statements in RPC
Hello all! I'm new to Supabase and wanted to use the SQL editor to create a custom RPC. I'd like to use a conditional inside the function but I keep getting syntax errors. I've tried several options and below is my most recent attempt. Any and all help is appreciated! Thanks.