ForumsProgramming ForumWhat is the purpose of Event Listners?

1 5460
cheese123
offline
cheese123
20 posts
Nomad

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
Nomad

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