From 829e739d8529be35fdf87f77c3c21a55f6036d70 Mon Sep 17 00:00:00 2001 From: Thomas Knoefel <53190206+daddel80@users.noreply.github.com> Date: Wed, 25 Dec 2024 13:52:44 +0100 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea46239..c88906d 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ return { |---------------|-------------------------------------------------------------------------------|-------|-----------|------------------------------------------------------------------------------------------------------| | *(empty)* | `lvars([[C:/tmp/myVars.vars]])` | No | No | Loads variables such as `userName = "Alice"` and `threshold = 10` from `myVars.vars`. | | `Hello` | `set(userName)` | No | No | Replaces `Hello` with the value of the variable `userName`, e.g., `"Alice"`. | -| `(\d+)` | `cond(tonumber(CAP1) > threshold, "Above", "Below")` | Yes | No | Replaces the match based on the condition evaluated using the variable `threshold`. | +| `(\d+)` | `cond(threshold > 5, "Above", "Below")` | Yes | No | Replaces the match based on the condition evaluated using the variable `threshold`. | An empty Find string (`*(empty)*`) initializes variables globally at the start of the 'Replace' or 'Replace All' process when "Use List" is enabled. This initialization runs only once and is independent of specific matches or its position in the list. Alternatively, variables can be loaded conditionally by combining `lvars` or `vars` with a Find string, triggering the variable assignment only when the specified string is matched.