]> jfr.im git - irc/kvirc/KVIrc.git/commitdiff
Clarify comment about $true and $false.
authorAlexey Sokolov <redacted>
Fri, 1 Jan 2016 22:00:41 +0000 (22:00 +0000)
committerAlexey Sokolov <redacted>
Fri, 1 Jan 2016 22:00:41 +0000 (22:00 +0000)
Checking if a value is true can be done also with if()

src/kvirc/kvs/parser/KviKvsParser.cpp

index 36c541cf3d30af35988d0495f36c234e796053df..1c0dca03ff89f72c7b21939f05af6a1fdc3e5454 100644 (file)
@@ -2160,9 +2160,8 @@ KviKvsTreeNodeInstruction * KviKvsParser::parseAsParameter(const QChar * pBuffer
                [/p]
 
                [p]
-               Booleans are either true or false values. To know whether something evaluates as true or false,
-               you must compare it to [fnc]$true[/fnc] or [fnc]$false[/fnc]. Don't use "true" or "false", because
-               the engine sees them as non-empty strings, which always evaluate as true.
+               Booleans are either true or false values. For boolean constants, use [fnc]$true[/fnc] or [fnc]$false[/fnc].
+               Don't use "true" or "false", because the engine sees them as non-empty strings, which always evaluate as true.
                [/p]
 
                [p]