by thomasdziedzic · 4mo ago · 0 comments
There's actually a built in if to sqlite: https://sqlite.org/lang_corefunc.html#iif
The only reason why I built it as a UDF was because I originally didn't find an if function. Though I'm not sure how I accomplished that thinking back :)