View Single Post
  #85  
Old 05-01-2009, 04:31 PM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Quote:
Originally Posted by Chompy View Post
Well,

PHP Code:
function onCreated() {
  
onTrigger();
}

function 
onTrigger() {
  
// do stuff

See, that confuses me, so there is no need to designate functions anymore? Or, alternatively, there is no need to set up triggers? The function itself is a trigger?

So instead of writing:

PHP Code:

function ThisStuff(){
  
stuff;
}

if (
trigger){
  
ThisStuff();

I can just do:

PHP Code:
function onThisStuffTrigger(){
  
stuff;

and it would act the same?
__________________
*Don't let the door hit you on the way out.*
Reply With Quote