Why does the less than (< ) operator work in Kix 3.62??
I am reading a value from the registry and
then using an If statement to find if the
value is less than 2048 MB. If the condition
is true, the registry value is updated.

Here is the portion of the script:

$LOGMAXSIZE=READVALUE("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application","MaxSize")

$SETMAXSIZE=2097152

If $LOGMAXSIZE>$SETMAXSIZE

WRITEVALUE("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application","MaxSize","2097152","REG_DWORD")

EndIf

With the less than operator, the WRITEVALUE command is never initiated. Changing to the greater than operator runs the WRITEVALUE command whether the argument is true or not.

Please let me know if there is an answer.
Thank you.