def METHOD_NAME(self,state,id,events):
    global boolCurrentValue
    # is this notify something I should act on?
    if not state or id != actTrigger.id:
        return
    if not PtWasLocallyNotified(self.key):
        return
    else:
        PtDebugPrint("DEBUG: xAgeSDLBoolToggleDependent.OnNotify():\t local player requesting %s change via %s" % (stringVarTarget.value,actTrigger.value[0].getName()) )
    ageSDL = PtGetAgeSDL()
    # Toggle the sdl value if enabled
    if not ageSDL[stringVarEnabler.value][0]:
        return
    if boolCurrentValue:
        boolCurrentValue = False
        ageSDL.setTagString(stringVarTarget.value,stringInfo.value)
    else:
        boolCurrentValue = True
        ageSDL.setTagString(stringVarTarget.value,stringInfo.value)
    ageSDL[stringVarTarget.value] = (boolCurrentValue,)
    PtDebugPrint("DEBUG: xAgeSDLBoolToggleDependent.OnNotify():\tset age SDL var %s to %d" % (stringVarTarget.value,boolCurrentValue) )