---
title: "Expression"
description: "API documentation for Expression"
url: https://developer.disguise.one/python-api/docs/expression/
---

# Expression

Base expression type

See also: [Expressions Guide](/plugins/guides/expressions)

Base class (inherits properties and methods): _[Resource](/python-api/docs/resource#resource)_

## Properties

#### **auto\_switch** : _int_

#### **error** : _str_ _(Read-Only)_

#### **expression** : _str_

The string defining the expression

#### **expressionString** : _str_

_UserName: =_

#### **isDisabled** : _bool_

When true, owners should skip evaluating this expression

#### **isOK** : _bool_ _(Read-Only)_

#### **isSelf** : _bool_ _(Read-Only)_

## Methods

#### **reset**(self)

#### **setDisabled**(self, disable: _bool_)

Enable or disable this expression. When disabled, owners skip evaluation; the formula is preserved.

## Static Methods

#### **cleanName**(name: _str_) -> _str_

#### **evaluateFromString**(expressionStr: _string\_view | str_) -> _Any_
