> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/callables/methodprop/methodprop.is_global.md).

# MethodProp.IS\_GLOBAL

A global function is defined outside of any contract scope.

An example of a global function is:

```solidity
pragma solidity ^0.7.0;

// solhint-disable

/**
 * @dev Reverts if `condition` is false, with a revert reason containing `errorCode`. Only codes up to 999 are
 * supported.
 */
function _require(bool condition, uint256 errorCode) pure {
    if (!condition) _revert(errorCode);
}
```

An example query to filter these functions:

```python
from glider import *
def query():
  props_included = [MethodProp.IS_GLOBAL]
  functions = Functions()\
      .with_all_properties(props_included)\
      .exec(1)
  print(functions[0].source_code())
  print(functions[0].address())
  return functions
```

Output:

<figure><img src="/files/8rfOZF0wkZtrX4h0X6hJ" alt=""><figcaption></figcaption></figure>
