interface


  EXTERNPROTO Matrix_Gate [
                     eventIn SFBool activate
                     eventOut SFString isActive
                     field SFString target
                    ]
  {
     Script {
        eventIn SFBool activateSc IS activate
        eventOut SFString isActiveSc IS isActive
        field SFString targetSc
  
        directOutput TRUE
        mustEvaluate TRUE
  
        url "javascript:
        function activateSc(value) {
          if( value == true ) {
            isActiveSc = targetSc;
          }
        }
      "
     }
  }