> For the complete documentation index, see [llms.txt](https://sketchwaredocs.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sketchwaredocs.gitbook.io/home/blocks/operator.md).

# Operator

This page in not finished

#### True

<div align="left"><img src="/files/-MG9LlTKouIdZBsj-9oH" alt="true"></div>

True condition

#### False

<div align="left"><img src="/files/-MG9LoO6TyGq8-ypcCwx" alt="false"></div>

False condition

#### < (less than)

<div align="left"><img src="/files/-MG9LZWeOc2CNlpw-7OJ" alt="Less than"></div>

Used to check if one value is less than the other.

#### = (equals)

<div align="left"><img src="/files/-MG9LO_p5xHe_ZWM0-4X" alt=""></div>

Used to check if two values are equal.

#### > (greater than)

<div align="left"><img src="/files/-MG9LVkVbIEe2r1MpmcW" alt=""></div>

Used to check if one value is greater than the other.

#### And

<div align="left"><img src="/files/-MG9LRmFm_5RyCfEfUab" alt=""></div>

Joins two condition blocks.

#### Or

<div align="left"><img src="/files/-MG9Lb3NjWjw4wiUInH8" alt=""></div>

Joins two condition blocks, but they function separately.

#### Not

<div align="left"><img src="/files/-MG9La_fCGnskHoizhSy" alt=""></div>

Changes the condition checked to false instead of the default which is true.

#### + (add)

<div align="left"><img src="/files/-MG9LNBMT_UJEl94aKae" alt="Plus"></div>

Used to add two numbers.

#### - (subtract)

<div align="left"><img src="/files/-MG9LKa9xnAwcLpzb9qA" alt="Minus"></div>

Used to subtract two numbers

#### \* (multiply)

<div align="left"><img src="/files/-MG9LiBlUN276blhF3Gt" alt="times"></div>

Used to multiply two numbers.

#### / (divide)

<div align="left"><img src="/files/-MG9LSrT0CZIeAcmeBS5" alt="divided by"></div>

Used to divide two numbers.

#### % (percent)

<div align="left"><img src="/files/-MG9LMTeq_FAxziPXjwk" alt="percent of"></div>

#### Pick Random

<div align="left"><img src="/files/-MG9LbY8UDlFjQaOzKFl" alt="pick random _ to _"></div>

Pick a random number between two specified numbers.

#### Length of

<div align="left"><img src="/files/-MG9LYbutDY0q8UrBK5V" alt="Length of"></div>

Gets the length of a string (text).

#### Join

<div align="left"><img src="/files/-MG9LWdUKjyxMfvmmf17" alt="Join _ and _"></div>

Combines two vales and puts them right next to each other.

#### Index

<div align="left"><img src="/files/-MG9LWCJrNDM_1YJcKky" alt="Index _ of _"></div>

Needs description

#### Last index

Needs image

Needs description

#### Substring

<div align="left"><img src="/files/-MG9LcgB3_A27k3J05v9" alt="_ substring _ to _"></div>

Needs description

#### Equals

<div align="left"><img src="/files/-MG9LTUJTq-ozioPpgAv" alt="_ equals _"></div>

Condition used to check if two strings are equal.

{% hint style="info" %}
Usually used with SharedPreferences.
{% endhint %}

#### Contains

<div align="left"><img src="/files/-MG9LSKVUjGGciv9PCUU" alt="contains"></div>

#### Replace all

<div align="left"><img src="/files/-MG9LbzC-_-ZvuPj1h_S" alt="_ replace all _ with _"></div>

Replaces all the specified value with the specified value for the specified string.

#### Trim

<div align="left"><img src="/files/-MG9LhkP8ZL7rq0jSxg6" alt="trim"></div>

Removes any space characters around the specified string.

#### ToUpperCase

<div align="left"><img src="/files/-MG9LhGthnQ4ZjHolNmE" alt="toUpperCase _"></div>

Makes the specified string uppercase.

#### ToLowerCase

<div align="left"><img src="/files/-MG9LdlVErM4__0o7EyR" alt="toLowerCase _"></div>

Makes the specified string lowercase.

#### toNumber

<div align="left"><img src="/files/-MG9LfBYZ-VRxp8OX9Rf" alt="toNumber _"></div>

Converts a string into a number.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sketchwaredocs.gitbook.io/home/blocks/operator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
