Divide by zero error
Options
Duncy Dunc
Member ✭
Hey Xano'iens, I have a tricky tricky. My api is erroring when it has to divide by zero. Is there a way around this? My equation will need to divide by zero if the "get all records" count is zero. In my example below, var: signups = zero. Aka: There are no signups for their affiliate link yet.
Comments
-
hey @Duncy Dunc - happy New Year. I don't have a slick trick for you but rather suggest you use a conditional (IF.. THEN.. ELSE..) statement to have that variable do something else or put another value in there if the var you are dividing by is 0
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback