> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/evaluator/applicable_contexts/file_info_tips.md).

# Info Tips and Tiles

You can use the evaluator in the definitions for [file info tips](/directory-opus/manual/file_types/filetype_editor/info_tip.md) and [tiles mode](/directory-opus/manual/file_types/filetype_editor/tiles_mode.md) to insert text returned by the evaluation.

Use the `{= ... =}` code to insert an evaluation expression. The expression between the `{=` and the `=}` markers can span multiple lines if needed. The return value of the expression is inserted into the info tip or tile.

You can also implement hide sections using the evaluator - use `{!= ... =}` to open the hide section with an evaluation expression. If the expression returns **false**, everything within the hide section will be hidden. Close the hide section with `{!}` as normal.

In this evaluation context, the following variables are available:

| Variable      | Type     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| *column name* | *varies* | <p>All the <a href="/directory-opus/manual/reference/metadata_keywords/keywords_for_columns.md">column keywords</a> are available as variables in this evaluation context.</p><p>Note that some keywords may use characters like a <code>:</code> that aren't valid in variable names - to access them, use the <a href="/directory-opus/manual/reference/evaluator/val.md">val</a> function.</p><p>Additionally, the keywords <strong>foldersize</strong>, <strong>foldercontents</strong> and <strong>infotip</strong> are also supported.</p> |
| file\_name    | *string* | Returns the full name of the file the expression is being run for. This may be different from **file** which (as a column keyword), returns the value of the *Name* column (which e.g. may have file extensions hidden).                                                                                                                                                                                                                                                                                                                         |
| is\_dir       | *bool*   | **True** if the expression is being run for a folder, **false** if it's being run for a file.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |

The return value should either be a *str* for an insertion, or a *bool* for a hide section.

* If the expression is an insertion (using the `{= ... =}` code), the return value from the evaluation expression will be inserted into the info tip or tile at the point where the code appeared.
* If the expression is for a hide section (using the `{!= ... =}` code), it should return **true** to show the contents of the hide section, or **false** to hide them.
