> 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

Usually used with blocks from the Contol tab.

This page in not finished

#### True

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LlTKouIdZBsj-9oH%2FOperator%20true.png?alt=media&amp;token=0757f5c1-8c1f-454d-8d5e-8248011a735e" alt="true"></div>

True condition

#### False

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LoO6TyGq8-ypcCwx%2FOperator%20fasle.png?alt=media&amp;token=78f8f74d-4e86-4269-a7be-21c3456b3235" alt="false"></div>

False condition

#### < (less than)

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LZWeOc2CNlpw-7OJ%2FOperator%20less%20then.png?alt=media&amp;token=388f69c1-70f6-4907-94a1-1aa419c1bb9f" alt="Less than"></div>

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

#### = (equals)

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LO_p5xHe_ZWM0-4X%2FOperator%20%3D%20equal.png?alt=media&amp;token=f691cbc5-19e7-46d5-af23-46670cf3ce4a" alt=""></div>

Used to check if two values are equal.

#### > (greater than)

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LVkVbIEe2r1MpmcW%2FOperator%20greater%20than.png?alt=media&amp;token=e6872396-100d-4a3a-a998-654c637ed395" alt=""></div>

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

#### And

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LRmFm_5RyCfEfUab%2FOperator%20and.png?alt=media&amp;token=108e203c-ea87-41c8-b975-bc1ceed30064" alt=""></div>

Joins two condition blocks.

#### Or

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9Lb3NjWjw4wiUInH8%2FOperator%20or.png?alt=media&amp;token=971405b2-4638-429f-ac1d-176f3376ffd0" alt=""></div>

Joins two condition blocks, but they function separately.

#### Not

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9La_fCGnskHoizhSy%2FOperator%20not.png?alt=media&amp;token=3fd65019-ca7e-4161-b051-49aac5441c3e" alt=""></div>

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

#### + (add)

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LNBMT_UJEl94aKae%2FOperator%20%2B%20plus.png?alt=media&amp;token=e701a015-c1dc-4b47-ac78-8e017204f193" alt="Plus"></div>

Used to add two numbers.

#### - (subtract)

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LKa9xnAwcLpzb9qA%2FOperator%20-%20minus.png?alt=media&amp;token=5632c9c2-a18e-4d98-9760-5efe4458b54e" alt="Minus"></div>

Used to subtract two numbers

#### \* (multiply)

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LiBlUN276blhF3Gt%2FOperator%20x%20times.png?alt=media&amp;token=97b5fd66-c056-4507-9cc9-dbf19e2bc9eb" alt="times"></div>

Used to multiply two numbers.

#### / (divide)

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LSrT0CZIeAcmeBS5%2FOperator%20Divide.png?alt=media&amp;token=66bbe77f-63e7-4147-8eae-50af8ffc2e80" alt="divided by"></div>

Used to divide two numbers.

#### % (percent)

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LMTeq_FAxziPXjwk%2FOperator%20%25%20percent.png?alt=media&amp;token=98830242-f281-483b-9c1c-49d72a1f0968" alt="percent of"></div>

#### Pick Random

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LbY8UDlFjQaOzKFl%2FOperator%20pick%20random%20to.png?alt=media&amp;token=8e33b505-c421-4240-827e-9a2b95416ef5" alt="pick random _ to _"></div>

Pick a random number between two specified numbers.

#### Length of

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LYbutDY0q8UrBK5V%2FOperator%20length%20of.png?alt=media&amp;token=8c303d01-f30e-4490-96af-f9b30d04ea54" alt="Length of"></div>

Gets the length of a string (text).

#### Join

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LWdUKjyxMfvmmf17%2FOperator%20join%20and.png?alt=media&amp;token=e63ac322-d7e5-4a23-8eb1-f3515d196420" alt="Join _ and _"></div>

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

#### Index

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LWCJrNDM_1YJcKky%2FOperator%20index%20of.png?alt=media&amp;token=99ae9cf1-9e36-422d-b2a0-1e17c37f6dd0" alt="Index _ of _"></div>

Needs description

#### Last index

Needs image

Needs description

#### Substring

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LcgB3_A27k3J05v9%2FOperator%20substring%20to.png?alt=media&amp;token=062f00c1-3d46-4db9-856b-f8155048366f" alt="_ substring _ to _"></div>

Needs description

#### Equals

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LTUJTq-ozioPpgAv%2FOperator%20equals.png?alt=media&amp;token=cb182151-6dcc-4fc7-b9c0-c63abcae4e23" 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="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LSKVUjGGciv9PCUU%2FOperator%20contains.png?alt=media&amp;token=b05e4faa-48f0-40c3-a5b0-afba3ec3babd" alt="contains"></div>

#### Replace all

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LbzC-_-ZvuPj1h_S%2FOperator%20replace%20all%20with.png?alt=media&amp;token=e6ed0c4e-90fa-4d82-84ab-1e9d9e692a8e" alt="_ replace all _ with _"></div>

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

#### Trim

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LhkP8ZL7rq0jSxg6%2FOperator%20trim.png?alt=media&amp;token=052b6ad6-37a1-4de0-9e8a-14a12c2c655c" alt="trim"></div>

Removes any space characters around the specified string.

#### ToUpperCase

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LhGthnQ4ZjHolNmE%2FOperator%20toUpperCase.png?alt=media&amp;token=17656d16-bcf6-4994-8dc3-7be702e5904a" alt="toUpperCase _"></div>

Makes the specified string uppercase.

#### ToLowerCase

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LdlVErM4__0o7EyR%2FOperator%20toLowerCase.png?alt=media&amp;token=bc81dd6d-bdff-41ae-8024-e4a0a4d87e92" alt="toLowerCase _"></div>

Makes the specified string lowercase.

#### toNumber

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG9CpMwy_AZhx0X7ZHf%2F-MG9LfBYZ-VRxp8OX9Rf%2FOperator%20toNumber.png?alt=media&amp;token=c79e25ac-f25b-487e-bb01-79a7d29ef441" alt="toNumber _"></div>

Converts a string into a number.
