summaryrefslogtreecommitdiff
path: root/doc/en/autogen/user
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-10-17 20:43:40 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-10-17 20:43:40 +0200
commit1d56e17b2f0e8f8ce71651729aeb2cab3340a0ad (patch)
tree62d0d41a52b19c35776b91877adbdf0993e72659 /doc/en/autogen/user
parent5233160d823a10e1a9b2c852a1f68844fa4711d3 (diff)
downloadweechat-1d56e17b2f0e8f8ce71651729aeb2cab3340a0ad.zip
core: allow floating point and hexadecimal numbers in comparison of evaluated values
Diffstat (limited to 'doc/en/autogen/user')
-rw-r--r--doc/en/autogen/user/weechat_commands.adoc7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/en/autogen/user/weechat_commands.adoc b/doc/en/autogen/user/weechat_commands.adoc
index c0c951e06..67f7f49d6 100644
--- a/doc/en/autogen/user/weechat_commands.adoc
+++ b/doc/en/autogen/user/weechat_commands.adoc
@@ -278,8 +278,11 @@ expression: expression to evaluate, variables with format ${variable} are replac
!* is NOT matching mask (wildcard "*" is allowed)
An expression is considered as "true" if it is not NULL, not empty, and different from "0".
-The comparison is made using integers if the two expressions are valid integers.
-To force a string comparison, add double quotes around each expression, for example:
+The comparison is made using floating point numbers if the two expressions are valid numbers, with one of the following formats:
+ - integer (examples: 5, -7)
+ - floating point number (examples: 5.2, -7.5, 2.83e-2)
+ - hexadecimal number (examples: 0xA3, -0xA3)
+To force a string comparison, you can add double quotes around each expression, for example:
50 > 100 ==> 0
"50" > "100" ==> 1