As Adiktuz said, you can pass a function into it (note that the function must be defined above the reference point).
However, his example has "call b", which iirc won't compile. However, you can still use it as input to things such as ForForce(), TimerStart(), or TriggerExecute().
Are you planning on using this for GUI? If so, you may want to post the triggers so we can weigh the options. The easiest/neatest way to do it in GUI is to just make a separate trigger with no events and execute it.