Undestanding execution limit
Hi,
i'm trying to understand the execution limit on creator's function.
So, take a look to this screen:
![](https://desk.zoho.com/portal/api/uploads/edbsnb5dad6084dcd290cb999914c57f363a4/content?portalId=edbsn3b70dd1c6df566ee5b86f9a10b39ac781e714edb9c3a38a191adf0c5b716166e)
This snippet work.
But if i add:
![](https://desk.zoho.com/portal/api/uploads/edbsn3d461528dec46894cdedec64af5b9c10/content?portalId=edbsn3b70dd1c6df566ee5b86f9a10b39ac781e714edb9c3a38a191adf0c5b716166e)
i reach execution limits.
Also if a wrote ONLY if (condition) {} this if gives to me an execution limit error.
But if i rewrite the logic like this:
![](https://desk.zoho.com/portal/api/uploads/edbsn3f38fd59f0662b7d447940bbcd81a5b5/content?portalId=edbsn3b70dd1c6df566ee5b86f9a10b39ac781e714edb9c3a38a191adf0c5b716166e)
works properly.
So... what? I don't understand the logic behind this error... How the last snippet can't reach execution limits and the first one, only for a simple "if" reach this error?
It's a bug or... ?
Salvatore