On 2019-11-05 7:51 p.m., Frans wrote:
We have upgraded the OSCC grid to version 0.9.1.0, and I noticed a change
in script behavior.
in the past, in version 0.8.2.1 for example, NULL_KEY
or 00000000-0000-0000-0000-000000000000 would evaluate as FALSE when put in
a IF statement.
In the latest version it evaluates as TRUE.

This is covered in http://opensimulator.org/mantis/view.php?id=5844 where I have a patch I made to address the issue when a string is used as a boolean.

A string as a boolean is false if it has 0 length. It is true if it is a valid UUID. My patch adds an additional condition to the UUID check that will return false if the UUID is the NULL_KEY UUID. Anything else returns true.

--
Cheers!

Kevin.

http://www.ve3syb.ca/               | "Nerds make the shiny things that
https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
                                    | that's why we're powerful"
Owner of Elecraft K2 #2172          |
#include <disclaimer/favourite>     |             --Chris Hardwick
_______________________________________________
Opensim-dev mailing list
Opensim-dev@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-dev

Reply via email to