I was having some problem with a SQL query few hour ago, it required me to write a sub query to execute it correctly.https://gist.github.com/fabiolee/727db640ae33c4be384ce0a7c2597ab6.jsHmm, not good, heavy process.
https://gist.github.com/fabiolee/8676ef6894cf0adb64c253d8d5c4840b.jsThese two set of codes seem like having no different. It seem like “return” make “else if” useless.