# \#evaluator

**URL:** https://resource.dopus.com/tag/evaluator/63.md

[Latest](https://resource.dopus.com/latest.md) · [Categories](https://resource.dopus.com/categories.md) · [Tags](https://resource.dopus.com/tags.md)

---

## [Evaluator: Try inside a loop](https://resource.dopus.com/t/evaluator-try-inside-a-loop/60869)

<div class="topic-metadata">

**Author:** [@errante](https://resource.dopus.com/u/errante)\
**Replies:** 1\
**Last updated:** [November 20, 2026, 7:22am UTC](https://resource.dopus.com/t/evaluator-try-inside-a-loop/60869 "2026-11-20T07:22:30Z")

</div>

arr = ArrayCreate( "xxxx", "yyyy", "qqqq", "rrrr", "bbbb" ); mindate = "2099-01-01" as date; l = ""; for (a = len(arr) - 1; a \>= 0; a--) { t = ArrayGet(arr, a); try { d = Val(t, true); if (d && d \< mindate) { …

---

## [Evaluator function call caused high CPU usage](https://resource.dopus.com/t/evaluator-function-call-caused-high-cpu-usage/60727)

<div class="topic-metadata">

**Author:** [@lxp](https://resource.dopus.com/u/lxp)\
**Replies:** 0\
**Last updated:** [October 19, 2026, 7:40am UTC](https://resource.dopus.com/t/evaluator-function-call-caused-high-cpu-usage/60727 "2026-10-19T07:40:38Z")

</div>

While playing with the new evaluator functions, I noticed code execution would stop after a function call. No errors, no crashes, but after looking for a bug a bit Opus used 60% of my CPU. Exiting Opus brought everythin…

---

## [Evaluator Column - Precise Ages](https://resource.dopus.com/t/evaluator-column-precise-ages/57788)

<div class="topic-metadata">

**Author:** [@Chuck](https://resource.dopus.com/u/Chuck)\
**Replies:** 20\
**Last updated:** [July 22, 2026, 8:06am UTC](https://resource.dopus.com/t/evaluator-column-precise-ages/57788 "2026-07-22T08:06:12Z")

</div>

Converting the Column - Age script to evaluator columns as they are much quicker. These three columns provide Age Modified, Age Created, and Age Accessed in YY:DDD:HH:MM:SS format, respectively. EDIT: updated based on @…

---

## [Multiplying Rnd() with uint returns zero](https://resource.dopus.com/t/multiplying-rnd-with-uint-returns-zero/60057)

<div class="topic-metadata">

**Author:** [@lxp](https://resource.dopus.com/u/lxp)\
**Replies:** 4\
**Last updated:** [July 21, 2026, 9:52pm UTC](https://resource.dopus.com/t/multiplying-rnd-with-uint-returns-zero/60057 "2026-07-21T21:52:36Z")

</div>

Multiplying Rnd() with a uint value always returns zero. int works fine as does multiplying other double values with uint. a = 3 as uint; // a = 4 as int; // b = 7 as double; b = Rnd(); a\*b Stumbled upon this be…

---

## [Eval column not sorting properly](https://resource.dopus.com/t/eval-column-not-sorting-properly/60015)

<div class="topic-metadata">

**Author:** [@galaxyhub](https://resource.dopus.com/u/galaxyhub)\
**Replies:** 7\
**Last updated:** [July 16, 2026, 6:46pm UTC](https://resource.dopus.com/t/eval-column-not-sorting-properly/60015 "2026-07-16T18:46:52Z")

</div>

have eval column 'Age' that does not sort properly: am using if (operation == "sort") return Age(modifieddate); but it is not sorting the same as the modified column. here is the eval column \<?xml version="1.0"…

---

## [FileDate() throws unexpected error](https://resource.dopus.com/t/filedate-throws-unexpected-error/59882)

<div class="topic-metadata">

**Author:** [@lxp](https://resource.dopus.com/u/lxp)\
**Replies:** 3\
**Last updated:** [July 8, 2026, 12:12am UTC](https://resource.dopus.com/t/filedate-throws-unexpected-error/59882 "2026-07-08T00:12:02Z")

</div>

These evaluator commands work fine but still throw an error. @nodeselect @output:{=filepath=} @output:{=FileDate(filepath)=} ▶ XML

---

## [Asc() and ternary mess with Evaluator's basic calculus](https://resource.dopus.com/t/asc-and-ternary-mess-with-evaluators-basic-calculus/59846)

<div class="topic-metadata">

**Author:** [@lxp](https://resource.dopus.com/u/lxp)\
**Replies:** 2\
**Last updated:** [June 30, 2026, 4:39am UTC](https://resource.dopus.com/t/asc-and-ternary-mess-with-evaluators-basic-calculus/59846 "2026-06-30T04:39:54Z")

</div>

This Evaluator function (unsurprisingly) prints 65 and 66 or - if we press Ctrl - 65 and 64: rev = KeyDown("ctrl"); d = 65; // d = Asc("A"); i = d + (rev ? -1 : 1); Output("d = " + d); Output("i = " + i); Output("")…

---

## [Evaluator button @label, IsChecked with nested quotes](https://resource.dopus.com/t/evaluator-button-label-ischecked-with-nested-quotes/59688)

<div class="topic-metadata">

**Author:** [@galaxyhub](https://resource.dopus.com/u/galaxyhub)\
**Replies:** 2\
**Last updated:** [June 10, 2026, 9:10pm UTC](https://resource.dopus.com/t/evaluator-button-label-ischecked-with-nested-quotes/59688 "2026-06-10T21:10:26Z")

</div>

This works @label:=Select(IsChecked("Toolbar Labels TOGGLE"), "Labels Toolbar (OFF)", "Labels Toolbar (ON)") This does not (due to the quotes, no doubt) @label:=Select(IsChecked("Toolbar "Favorites Bar" TOGGLE"), "Fav…

---

## [How do I create: rename control key to insert date modified](https://resource.dopus.com/t/how-do-i-create-rename-control-key-to-insert-date-modified/59154)

<div class="topic-metadata">

**Author:** [@gclaugus](https://resource.dopus.com/u/gclaugus)\
**Replies:** 6\
**Last updated:** [April 16, 2026, 2:37pm UTC](https://resource.dopus.com/t/how-do-i-create-rename-control-key-to-insert-date-modified/59154 "2026-04-16T14:37:02Z")

</div>

I want to use the evaluator for a rename control key similarly to the insert date control key, except this would insert the last modified date on the given file/folder. How should I accomplish this? Is there any way to …

---

## [About button\_rect and click\_pt and Evaluator maps](https://resource.dopus.com/t/about-button-rect-and-click-pt-and-evaluator-maps/59083)

<div class="topic-metadata">

**Author:** [@Bennjamin](https://resource.dopus.com/u/Bennjamin)\
**Replies:** 6\
**Last updated:** [April 7, 2026, 9:20am UTC](https://resource.dopus.com/t/about-button-rect-and-click-pt-and-evaluator-maps/59083 "2026-04-07T09:20:47Z")

</div>

Breaking the "one question per post". It seems that if you use names that are also used in functions in a map, you can't normally access those properties later. You need to use the Val() function for that. This aff…

---

## [Get an Alias for a Path, if assigned](https://resource.dopus.com/t/get-an-alias-for-a-path-if-assigned/58052)

<div class="topic-metadata">

**Author:** [@Chuck](https://resource.dopus.com/u/Chuck)\
**Replies:** 30\
**Last updated:** [January 15, 2026, 1:28am UTC](https://resource.dopus.com/t/get-an-alias-for-a-path-if-assigned/58052 "2026-01-15T01:28:35Z")

</div>

Evaluator provides the Resolve function to determine the path for an alias. I'm interested in going the opposite way, specifically with Evaluator if at all possible. USE CASE: I have a button whose label is set to a tru…

---

## [Why does FileCount() in the context menu fail to return the correct result?](https://resource.dopus.com/t/why-does-filecount-in-the-context-menu-fail-to-return-the-correct-result/58296)

<div class="topic-metadata">

**Author:** [@a815](https://resource.dopus.com/u/a815)\
**Replies:** 3\
**Last updated:** [January 14, 2026, 10:57pm UTC](https://resource.dopus.com/t/why-does-filecount-in-the-context-menu-fail-to-return-the-correct-result/58296 "2026-01-14T22:57:57Z")

</div>

The test button code is as follows, add it to the 'All Files' context menu and select 'Evaluator Function' function type. This button works well in the toolbar. @showif:= all\_txt = FileCount("\*.txt");selected\_txt = Fil…

---

## [How to run multiple commands from a loop?](https://resource.dopus.com/t/how-to-run-multiple-commands-from-a-loop/57441)

<div class="topic-metadata">

**Author:** [@lxp](https://resource.dopus.com/u/lxp)\
**Replies:** 1\
**Last updated:** [November 3, 2025, 12:05pm UTC](https://resource.dopus.com/t/how-to-run-multiple-commands-from-a-loop/57441 "2025-11-03T12:05:45Z")

</div>

Suppose I want to create several folders. I could try using an evaluator loop like this: =for (i = 1; i \< 5; i++) {return "CreateFolder NAME=" + i} However, this only executes the first iteration, creating just one fol…

---

## [Renamer: index formatted as num](https://resource.dopus.com/t/renamer-index-formatted-as-num/57568)

<div class="topic-metadata">

**Author:** [@lxp](https://resource.dopus.com/u/lxp)\
**Replies:** 1\
**Last updated:** [October 27, 2025, 6:03am UTC](https://resource.dopus.com/t/renamer-index-formatted-as-num/57568 "2025-10-27T06:03:44Z")

</div>

In the Renamer context, if the variable index exceeds 999, it will be formatted as num and will have the type str. This will confuse As when it's asked to convert ìndex to int. {=index + "\_" + (index as int) + "\_" + Ty…

---

## [Add source to Evaluator Infotip context](https://resource.dopus.com/t/add-source-to-evaluator-infotip-context/57346)

<div class="topic-metadata">

**Author:** [@errante](https://resource.dopus.com/u/errante)\
**Replies:** 1\
**Last updated:** [September 28, 2025, 11:26pm UTC](https://resource.dopus.com/t/add-source-to-evaluator-infotip-context/57346 "2025-09-28T23:26:56Z")

</div>

Hi. Is it possible to access the source var in the Evaluator Infotip context? I'd like to show some extra info if I'm inside a collection.

---

## [Evaluator column: size+labels](https://resource.dopus.com/t/evaluator-column-size-labels/57193)

<div class="topic-metadata">

**Author:** [@eugenesv](https://resource.dopus.com/u/eugenesv)\
**Replies:** 0\
**Last updated:** [September 15, 2025, 10:30am UTC](https://resource.dopus.com/t/evaluator-column-size-labels/57193 "2025-09-15T10:30:46Z")

</div>

This is a partial conversion of my JS-scripting formatted and aligned size column to avoid the per-item JS scripting overhead (at the cost of convenient user configuration and others issues, see below). This addresses m…

---

## [Evaluator column: short item attributes](https://resource.dopus.com/t/evaluator-column-short-item-attributes/57181)

<div class="topic-metadata">

**Author:** [@eugenesv](https://resource.dopus.com/u/eugenesv)\
**Replies:** 0\
**Last updated:** [September 14, 2025, 11:44am UTC](https://resource.dopus.com/t/evaluator-column-short-item-attributes/57181 "2025-09-14T11:44:15Z")

</div>

Converted my scripting short file attributes column to avoid JS scripting overhead (at the cost of convenient user configuration, edit the script itself). Usually you only have a couple of attributes for most of the fil…

---

## [Trouble with evaluator adding terminator](https://resource.dopus.com/t/trouble-with-evaluator-adding-terminator/56523)

<div class="topic-metadata">

**Author:** [@ThioJoe](https://resource.dopus.com/u/ThioJoe)\
**Replies:** 4\
**Last updated:** [July 18, 2025, 7:15pm UTC](https://resource.dopus.com/t/trouble-with-evaluator-adding-terminator/56523 "2025-07-18T19:15:31Z")

</div>

I'm trying to work on an evaluator block to conditionally set file names, something like: @set testVar={= pathNoExt=Parent(selpath) + Stem(selpath); if(IsFile(pathNoExt + ".md")) {Output(pathNoExt + "-2.md")} else…

---

## [Range for Rnd()](https://resource.dopus.com/t/range-for-rnd/55971)

<div class="topic-metadata">

**Author:** [@lxp](https://resource.dopus.com/u/lxp)\
**Replies:** 12\
**Last updated:** [June 3, 2025, 4:24am UTC](https://resource.dopus.com/t/range-for-rnd/55971 "2025-06-03T04:24:08Z")

</div>

From the docs: Is my observation correct that the random number is never zero or one? It's 0 \< Rnd() \< 1?

---

## [Evaluator column: Code gets reformatted](https://resource.dopus.com/t/evaluator-column-code-gets-reformatted/55093)

<div class="topic-metadata">

**Author:** [@MartO](https://resource.dopus.com/u/MartO)\
**Replies:** 7\
**Last updated:** [March 27, 2025, 5:57am UTC](https://resource.dopus.com/t/evaluator-column-code-gets-reformatted/55093 "2025-03-27T05:57:12Z")

</div>

Since the latest beta 13.14.1 (or possibly the update from 13.13.9 to 13.14, though that seems unlikely) the code in evaluator columns has been automatically "formatted" whenever I re-open the column editor: Any blank li…

---

## [Automatic refresh of "age" column?](https://resource.dopus.com/t/automatic-refresh-of-age-column/54960)

<div class="topic-metadata">

**Author:** [@MartO](https://resource.dopus.com/u/MartO)\
**Replies:** 4\
**Last updated:** [March 18, 2025, 2:46pm UTC](https://resource.dopus.com/t/automatic-refresh-of-age-column/54960 "2025-03-18T14:46:47Z")

</div>

I have a very simple evaluator column showing each item's age in minutes: return Age(modified, "n"); I selected all available "refresh" options in the editor and the column does refresh when a file changes - but it doe…

---

## [Using IsSet() in InfoTip](https://resource.dopus.com/t/using-isset-in-infotip/54806)

<div class="topic-metadata">

**Author:** [@errante](https://resource.dopus.com/u/errante)\
**Replies:** 3\
**Last updated:** [March 7, 2025, 11:26am UTC](https://resource.dopus.com/t/using-isset-in-infotip/54806 "2025-03-07T11:26:14Z")

</div>

I want to display a description for images if either imagedesc or userdesc is available. However, when I use IsSet() like this ( in FileTypes \> Images \> InfoTip dialog): \<b\>Desc. :\</b\> {=IsSet("imagedesc") ? imagedesc :…

---

## [Global/Lister/Tab variables in the status bar](https://resource.dopus.com/t/global-lister-tab-variables-in-the-status-bar/54721)

<div class="topic-metadata">

**Author:** [@MartO](https://resource.dopus.com/u/MartO)\
**Replies:** 2\
**Last updated:** [February 28, 2025, 7:06pm UTC](https://resource.dopus.com/t/global-lister-tab-variables-in-the-status-bar/54721 "2025-02-28T19:06:41Z")

</div>

I set three variables like so: @Set glob:vartest=testGlob @Set lst:vartest=testLst @Set tab:vartest=testTab I added this code to display them in the status bar with and without evaluators: Glob: {var:glob:vartest} Tab…

---

## [Aspect Ratio Evaluator Column](https://resource.dopus.com/t/aspect-ratio-evaluator-column/54042)

<div class="topic-metadata">

**Author:** [@David](https://resource.dopus.com/u/David)\
**Replies:** 20\
**Last updated:** [February 17, 2025, 3:06am UTC](https://resource.dopus.com/t/aspect-ratio-evaluator-column/54042 "2025-02-17T03:06:42Z")

</div>

This aspect ratio column makes no attempt to calculate fraction ratios from decimals. I really think this is not a need for that. This column determines whether common aspect ratios match the keyword aspect ratio to 2 …

---

## [Evaluator Column to show exe 32 bit or 64 bit architecture](https://resource.dopus.com/t/evaluator-column-to-show-exe-32-bit-or-64-bit-architecture/53735)

<div class="topic-metadata">

**Author:** [@ThioJoe](https://resource.dopus.com/u/ThioJoe)\
**Replies:** 4\
**Last updated:** [February 12, 2025, 9:51pm UTC](https://resource.dopus.com/t/evaluator-column-to-show-exe-32-bit-or-64-bit-architecture/53735 "2025-02-12T21:51:42Z")

</div>

Here's a pretty simple evaluator column script that shows a 'friendly name' for the most common platforms / architectures for binary files. Most commonly exe and dll, but a few others that also use PE and show the archit…

---

## [Possible to use variable in Evaluator?](https://resource.dopus.com/t/possible-to-use-variable-in-evaluator/53361)

<div class="topic-metadata">

**Author:** [@AlbatorV](https://resource.dopus.com/u/AlbatorV)\
**Replies:** 3\
**Last updated:** [November 10, 2024, 8:01am UTC](https://resource.dopus.com/t/possible-to-use-variable-in-evaluator/53361 "2024-11-10T08:01:47Z")

</div>

I want to use test variable in Evaluator code... Is it possible ? @set test=4 @set res={=Mid("123456789",{$test})=} {dlgstringS|Test|{$res}}

---

## [Struggling a bit with @showif with evaluator and filepath](https://resource.dopus.com/t/struggling-a-bit-with-showif-with-evaluator-and-filepath/53343)

<div class="topic-metadata">

**Author:** [@ThioJoe](https://resource.dopus.com/u/ThioJoe)\
**Replies:** 2\
**Last updated:** [November 4, 2024, 5:18pm UTC](https://resource.dopus.com/t/struggling-a-bit-with-showif-with-evaluator-and-filepath/53343 "2024-11-04T17:18:28Z")

</div>

Goal: Basically my goal is to have an option appear in the right click context menu only when right clicking a symbolic link folder. Or at least a toolbar button that does the same. My current approach has been to try a…

---

## [Accessing global map variables with evaluator or function?](https://resource.dopus.com/t/accessing-global-map-variables-with-evaluator-or-function/53008)

<div class="topic-metadata">

**Author:** [@ThioJoe](https://resource.dopus.com/u/ThioJoe)\
**Replies:** 2\
**Last updated:** [October 4, 2024, 4:35pm UTC](https://resource.dopus.com/t/accessing-global-map-variables-with-evaluator-or-function/53008 "2024-10-04T16:35:22Z")

</div>

Say I create some global map variable, potentially with nested maps like this example below. Would there be a way to retrieve the values from within the map variable in a standard function command? function OnClick(clic…

---

## [Questions about Quickfilter, Evaluator; Filtering by label using named textual filter](https://resource.dopus.com/t/questions-about-quickfilter-evaluator-filtering-by-label-using-named-textual-filter/52890)

<div class="topic-metadata">

**Author:** [@svArt](https://resource.dopus.com/u/svArt)\
**Replies:** 2\
**Last updated:** [September 23, 2024, 2:06pm UTC](https://resource.dopus.com/t/questions-about-quickfilter-evaluator-filtering-by-label-using-named-textual-filter/52890 "2024-09-23T14:06:51Z")

</div>

Hi there. I'm trying to make it easy to filter by labels. End goal: Have a menu with buttons that let me filter by labels, either showing only files that match, or files that don't. I would like to have a way of just p…

---

## [Run() Function for Evaluator](https://resource.dopus.com/t/run-function-for-evaluator/52609)

<div class="topic-metadata">

**Author:** [@grosner](https://resource.dopus.com/u/grosner)\
**Replies:** 7\
**Last updated:** [September 2, 2024, 10:44pm UTC](https://resource.dopus.com/t/run-function-for-evaluator/52609 "2024-09-02T22:44:38Z")

</div>

Evaluator Run() Function needed: The above thread got off topic so I'm reposting the feature request and details here. @Jon @Leo Can a Run() Evaluator function, usable in the Script Modifiers (and other places Evaluat…

[Next page](https://resource.dopus.com/tag/evaluator/63.md?match_all_tags=true&page=1&tags%5B%5D=evaluator)
