---
title: Values
slug: values
createdAt: 2023-03-26T09:17:08.000Z
---

Values are always part of the [RHS](docId\:zBJ6ATBBc9_S7nLSnWcHh), and denote the specific thing you're searching for.&#x20;

Certain values are only compatible with particular fields on the [LHS](docId\:zBJ6ATBBc9_S7nLSnWcHh) - for example, if the LHS is a number or currency, the RHS value cannot be text. QuickQuery will always let you know if you accidentally mismatch types on the LHS and RHS.&#x20;

***

## Text

A value representing text is always enclosed in double-quotes **`"`**, e.g. <font color="#3b9f0f">`"Some Text"`</font>. Unless specifically stated in [the documentation on operators](docId:-A6C2C3F2FW7YdjuVamvz), these values are case-sensitive (i.e. <font color="#3b9f0f">`"Some Text"`</font> is not the same as <font color="#3b9f0f">`"some text"`</font>, <font color="#3b9f0f">`"sOmE tExT"`</font>, etc.)

***

## Dropdowns

When querying on a dropdown field, QuickQuery will automatically suggest the appropriate values.

::Image[]{src="https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/E7SqpMMbqy3Ni97EkQu0J_enumhint.png" size="36" width="769" height="420" position="center" showCaption="false"}

Other than that, they are identical to text values.

***

## Numbers

Numbers are entered as you would expect, e.g. <font color="#2166ae">`25`</font>. If you need a negative number, prefix it with **`-`**, e.g. <font color="#2166ae">`-25`</font>. You can also prefix numbers with an optional **`+`**, if you want to, e.g. <font color="#2166ae">`+50`</font>. For decimals, enter the fractional part after a period **`.`**, e.g. <font color="#2166ae">`3.14`</font>.

***

## Currencies

When entering a currency, prefix the numerical value with the currency enclosed in double-quotes **`"`**, e.g. <font color="#3b9f0f">`"USD" 7000`</font>. Be sure to include the space between the currency and the value.

The numerical value can be any valid number, e.g. <font color="#3b9f0f">`"USD" -5.8`</font>.

Any of the following can be used as the currency specifier

- the currency code, e.g. <font color="#3b9f0f">`"USD"`</font>
- the currency symbol, e.g. <font color="#3b9f0f">`"$"`</font>
- full name of the currency, e.g. <font color="#3b9f0f">`"US Dollars"`</font>

QuickQuery will always suggest all available currencies.

***

## Binary

The available binary values are <font color="#9900ef">`true`</font> and <font color="#9900ef">`false`</font>. You use them when searching by e.g. checkboxes.

:::BlockQuote
**\[**<font color="#fcb900">**Do Not Call**</font>**]&#x20;**<font color="#9900ef">**=**</font> <font color="#9900ef">**false**</font>
:::

***

## Temporal

There are two types of temporal values: **fixed** and **interpreted**. In both cases, time-zone settings are respected.

### Fixed

Fixed values have a fixed form, and are entered exactly as seen here. They involve the units <font color="#2166ae">`second`</font> <font color="#2166ae">`minute`</font>, <font color="#2166ae">`hour`</font>, <font color="#2166ae">`day`</font>, <font color="#2166ae">`week`</font>, <font color="#2166ae">`month`</font>, <font color="#2166ae">`year`</font> and can be any of the following:

- <font color="#2166ae">`now`</font>
- <font color="#2166ae">`today`</font>
- <font color="#2166ae">`this <unit>`</font>, e.g. <font color="#2166ae">`this hour`</font>
- <font color="#2166ae">`last <unit>`</font>, e.g. <font color="#2166ae">`last month`</font>
- <font color="#2166ae">`next <unit>`</font>, e.g. <font color="#2166ae">`next year`</font>
- Any combination of <font color="#2166ae">`<whole number> <unit>`</font>, e.g. <font color="#2166ae">`3 years 5 minutes`</font>. The units must be sorted in descending order, i.e. <font color="#2166ae">`5 minutes 3 years`</font> is not allowed.

:::BlockQuote
**\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**=**</font> <font color="#2166ae">**today**</font>
:::

**All fixed values are converted to a time range.** Therefore, the above query is actually translated to:

:::BlockQuote
**\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**=**</font> <font color="#2166ae">**&lt;00\:00 today&gt;, &lt;23\:59 today&gt;**</font>
:::

This **only happens** with fixed temporal values, and **not** with interpreted temporal values.

### Interpreted

Interpreted values allow for a "free-form" textual description of a temporal amount, such as <font color="#2166ae">`next monday`</font>, <font color="#2166ae">`-7 weekdays`</font>, <font color="#2166ae">`first day of next month`</font> etc. Interpreted values are surrounded by <font color="#2166ae">`@[]`</font>, e.g. <font color="#2166ae">`@[tomorrow 3pm]`</font>.

The range of interpreted values is incredibly broad, and is documented in detail [here](https://www.php.net/manual/en/datetime.formats.php).

:::hint{type="success"}
**Technical details**



Interpreted values are interpreted as a series of modifiers/commands which change the value, starting from the current date and time.&#x20;



Therefore, writing e.g. <font color="#2166ae">`-7 weekdays`</font> starts with the current date and time, and subtracts 7 weekdays from it. The resulting value will be "now", but 7 week days ago.



As another example, writing <font color="#2166ae">`first day of this month 13:00`</font> starts with the current date and time, and first interprets "first day of this month", which changes the date appropriately. It then interprets "13:00", which changes the time.
:::

In practice, the easiest way to find out what they can do is to try them out. Read [this](docId\:W-qrkDeRLeW3WRPt_ZMUc) if you need help figuring out what a specific interpreted value translates to.

Here's an example:

:::BlockQuote
**\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**strictly after**</font> <font color="#2166ae">**\@\[**</font><font color="#2166ae">**tomorrow** </font><font color="#2166ae">**3pm\]**</font>
:::

**Interpreted temporal values are not converted to time ranges**. Therefore, <font color="#2166ae">**\@\[**</font><font color="#2166ae">**tomorrow** </font><font color="#2166ae">**3pm\]**</font> means tomorrow at exactly 15:00:00 down to the second.

:::hint{type="danger"}
When entering an interpreted value, **be sure to enter the "more general" specifiers first, and the "more specific" ones later!**&#x20;



As stated above, each part of an interpreted temporal value is translated to a command that modifies the date and time. Therefore, writing <font color="#2166ae">`@[tomorrow 3pm]`</font> will first interpret "tomorrow" and set the value to "\<tomorrow date> \<current time>", and then it will interpret "3pm" and set the time value to 15:00:00 (while keeping tomorrow's date).



However, writing <font color="#2166ae">`@[3pm tomorrow]`</font> will first interpret "3pm" and set the time value to 15:00:00, and then interpret "tomorrow" and set the value to "\<tomorrow date> \<current time>", which **will overwrite the 3pm we entered earlier!**
:::

### Fixed vs. Interpreted

While interpreted values give you a much greater flexibility, they are not well suited when used with equality, because they represent an **exact instant**, and not a time range.&#x20;

Consider the following two queries:

:::BlockQuote
**\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**=**</font> <font color="#2166ae">**today**
</font>**\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**=**</font> <font color="#2166ae">**\@\[today\]**</font>
:::

The first involves a **fixed** temporal value, and will therefore be translated to "*date created between 00:00:00 and 23:59:59 today*", which yields the query we probably meant. The second query involves and **interpreted** temporal value, and is simply translated to "*date created equals 00:00:00 today*", which will only display records which were created at exactly midnight today.

However, there's nothing preventing you from writing out the range yourself:

:::BlockQuote
**\[**<font color="#fcb900">**Date Created**</font>**] between&#x20;**<font color="#2166ae">**\@\[today midnight\]**</font>, <font color="#2166ae">**\@\[tomorrow midnight -1 seconds\]**</font>
:::

