anchor.diff:  let getEnvironmentVarAsBool varName = getEnvironmentVarAsBoolOrDefault varName false
   
   /// Retrieves the environment variable or None if no value was set
  -let environVarOrNone name = 
  +let environVarOrNone name =
       let var = environVar name
       if String.IsNullOrEmpty var then None
       else Some var
  
positive.code: let inline hasBuildParam name = environVar name <> null
  
  /// Returns the value of the build parameter with the given name if it was set and otherwise the given default value
  let inline getBuildParamOrDefault name defaultParam = 
      if hasBuildParam name then environVar name
      else defaultParam
  
  
negative.code: let setBuildParam name value = setProcessEnvironVar name value
  
  /// Retrieves the environment variable with the given name or returns the default if no value was set
  let environVarOrDefault name defaultValue =
      let var = environVar name
      if String.IsNullOrEmpty var then defaultValue
      else var
  
  /// Retrieves the environment variable with the given name or fails if not found
  let environVarOrFail name =
      let var = environVar name
      if String.IsNullOrEmpty var then failwith <| sprintf "Environment variable '%s' not found" name
      else var
  
  /// Retrieves the environment variable with the given name or returns the default value if no value was set
  let getEnvironmentVarAsBoolOrDefault varName defaultValue =
      try
          (environVar varName).ToUpper() = "TRUE"
      with
      | _ ->  defaultValue
  
  