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?
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?