# exists · Rell standard library · Chromia Docs (concept)

> val exists: boolean Indicates whether there is currently an operation context, i.e. if the currently executing code has
been called from an operation. When

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/op_context/exists/

PROPERTY

# exists

```signature
val exists: boolean
```

Indicates whether there is currently an operation context, i.e. if the currently executing code has
been called from an operation.

When `false`, accessing other properties and calling functions in this namespace will result in an
exception being thrown. When `true`, other properties and functions in this namespace can be used
safely.

Examples:

Rell

```
function main() {
    print(op_context.exists); // prints false
}
```

Rell

```
operation main() {
    print(op_context.exists); // prints true
}
```

Since 0.11.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/op_context/exists.html)Generated API reference, mirrored from the live docs
