> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# comparefunctions

> İki function values değerini function identity üzerinden karşılaştırır. İki arguments de functions olmalıdır. Function, function identity(L, 1) == function identity(L, 2) boolean result değerini döndürür. function bytecode, source, behavior, hashes, upvalues veya newcclosure mappings karşılaştırmaz. comparefunction aynı function için alias değeridir.

<div className="real-function-page">
  ```lua theme={null}
  comparefunctions(func1: function, func2: function): boolean
  ```

  ## Aliaslar

  * `comparefunction`

  ## Argümanlar

  <ParamField path={"func1"} type={"function"} required>
    function identity ile dönüştürülen first function value.
  </ParamField>

  <ParamField path={"func2"} type={"function"} required>
    function identity ile dönüştürülen second function value.
  </ParamField>

  ## Dönüşler

  <ResponseField name={"equal"} type={"boolean"}>
    İki function values aynı function identity değerine resolve olursa true; aksi halde false.
  </ResponseField>

  ## Örnek

  Compare two functions by their function identity.

  ```lua theme={null}
  local function sample()
      return "ok"
  end

  local same = comparefunctions(sample, sample)
  print(same)
  ```
</div>
