# Operators

The tasks in this module can be used to represent builtin operations, including math, indexing, and logical comparisons.

In general, users will not instantiate these tasks by hand; they will automatically be applied when users apply inline Python operators to a task and another value.

For example:

Task() or Task() # applies Or
Task() + Task() # applies Add
Task() * 3 # applies Mul
Task()['x'] # applies GetItem

# GetItem task

Helper task that retrieves a specific index of an upstream task's result.

API Reference

# Add task

Evaluates x + y

API Reference

# Sub task

Evaluates x - y

API Reference

# Mul task

Evaluates x * y

API Reference

# Div task

Evaluates x / y

API Reference

# FloorDiv task

Evaluates x // y

API Reference

# Pow task

Evaluates x ** y

API Reference

# Mod task

Evaluates x % y

API Reference

# And task

Evaluates x and y.

API Reference

# Or task

Evaluates x or y

API Reference

# Not task

Evaluates not x

API Reference

# Equal task

Evaluates x == y

API Reference

# NotEqual task

Evaluates x != y

API Reference

# GreaterThanOrEqual task

Evaluates x ≥ y

API Reference

# GreaterThan task

Evaluates x > y

API Reference

# LessThanOrEqual task

Evaluates x ≤ y

API Reference

# LessThan task

Evaluates x < y

API Reference