Activating or Deactivating a script using C#

Hey guys I was wondering how to activate or deactivate a script based off a Boolean value returning true or false.

yourComponent.enabled = yourBoolean;