Is this a bug?

mistahmikey

Active Member
I just noticed the following odd behavior with ISXEQ2 and the Character data type.

If a maintained effect exists, then

echo ${Me.Maintained[<maintaned effect>](exists)}

prints TRUE

but if it doesn't exist, it prints NULL, when I would have expected it to print FALSE

Same thing happens for Me.Effect.

Is this correct? If it is, how do you detect the NULL return? When ${<evaluates to null>} appears in a conditional expression, is it treated as FALSE by Lavishscript?
 

Kannkor

Ogre
I just noticed the following odd behavior with ISXEQ2 and the Character data type.

If a maintained effect exists, then

echo ${Me.Maintained[<maintaned effect>](exists)}

prints TRUE

but if it doesn't exist, it prints NULL, when I would have expected it to print FALSE

Same thing happens for Me.Effect.

Is this correct? If it is, how do you detect the NULL return? When ${<evaluates to null>} appears in a conditional expression, is it treated as FALSE by Lavishscript?
Not a bug.

You're asking it to find information, which doesn't exist, so it is returning nothing.

As for your Lavish question..
Search for "bool" in the lavish wiki and it will answer your question.
 
Top Bottom