diff options
Diffstat (limited to 'doc/it/autogen/user')
-rw-r--r-- | doc/it/autogen/user/weechat_commands.adoc | 7 |
1 files changed, 5 insertions, 2 deletions
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 |