Source Code

Code blocks can be done like this (this is python, the default):

class RegisterEvent:

   def AddToSmallGroup(self, smallgroup, orgmember):
     id = GetCampusId(smallgroup)
     if id < 99:
       orgmember.Person.CampusId = id
       # model gets passed in to the script for your use
       # model.CreateTask(819918, orgmember.Person, "Please Contact about " + smallgroup)

def GetCampusId(campus):
   if campus == 'East Side':
     return 3
   elif campus == 'West Side':
     return 2
   elif campus == 'Downtown':
     return 4
   else:
     # default if campus not found
     return 99

This is some c# code:

void Test(bool x)
{
    if(x == true)
    {
         callmethod(x);
    }
}