Forums

ForumsProgramming Forum

What is the purpose of Event Listners?

Posted Mar 3, '13 at 12:48pm

cheese123

cheese123

20 posts

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

 

Posted Mar 3, '13 at 3:03pm

strouthas

strouthas

24 posts

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.

 
Reply to What is the purpose of Event Listners?

You must be logged in to post a reply!