ForumsProgramming ForumWhat is the purpose of Event Listners?

1 2185
cheese123
offline
cheese123
20 posts
Peasant

So what is the purpose of Event Listners, why not just use if statements to execute a function?

  • 1 Reply
strouthas
offline
strouthas
24 posts
Peasant

Because if statement will be enormous and confusing and cpu and time consuming without reason. Event will happen only when it's needed to get your attention.

Showing 1-1 of 1