From 1d56e17b2f0e8f8ce71651729aeb2cab3340a0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 17 Oct 2017 20:43:40 +0200 Subject: core: allow floating point and hexadecimal numbers in comparison of evaluated values --- doc/it/autogen/user/weechat_commands.adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/it/autogen') diff --git a/doc/it/autogen/user/weechat_commands.adoc b/doc/it/autogen/user/weechat_commands.adoc index fdd15a85b..23f7de30e 100644 --- a/doc/it/autogen/user/weechat_commands.adoc +++ b/doc/it/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 -- cgit v1.2.3